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. |
Roman Pelepei gives smart answers on questions about C# .Net, ASP .Net, WPF and Silverlight programming with examples and source code.
четверг, 12 ноября 2009 г.
Motherboard Serial Number
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий