[杂笔屋]如何获取主板序列号

 

ExpandedBlockStart.gif 代码
         private   static   string  GetBIOSNumber()
        {
            ManagementObjectSearcher searcher 
=   new  ManagementObjectSearcher( " Select SerialNumber From Win32_BIOS " );
            
string  biosNumber  =   string .Empty;
            
foreach  (ManagementObject mgt  in  searcher.Get())
            {
                biosNumber 
+=  mgt[ " SerialNumber " ].ToString();
            }
            
return  biosNumber;
        }

 

System.Management

转载于:https://www.cnblogs.com/sofire/archive/2010/05/18/1737888.html

你可能感兴趣的:([杂笔屋]如何获取主板序列号)