четверг, 12 ноября 2009 г.

Motherboard Serial Number



Hello,

I'm trying to get the serial number of the motherboard with the following code:

CODE

string SerialNumber = "";

ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_BaseBoard");

foreach (ManagementObject mo in mbs.Get())
{
SerialNumber = mo["SerialNumber"].ToString().Trim();
}

return SerialNumber;


It appears to work, however the number returned does not match the manufacture serial number.

Does anyone know of a better method, or a way to getting the actual manufacture serial number.

Комментариев нет: