Articles → .NET → Get The Mother Board Serial Number In C#
Get The Mother Board Serial Number In C#
Code
string motherBoardId = string.Empty;
ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT SerialNumber FROM Win32_BaseBoard");
ManagementObjectCollection moc = mos.Get();
foreach(ManagementObject mo in moc) {
motherBoardId = mo["SerialNumber"].ToString();
}