Getting Machine Serial Number With WMI Class [duplicate]

有些话、适合烂在心里 提交于 2019-12-12 04:53:23

问题


I wrote this part of c# WMI Code for getting MotherBoard serial Number

ManagementObjectSearcher ComSerial = new ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard");

foreach (ManagementObject wmi in ComSerial.Get())
{
    try
    {
        MainBoard.Text = wmi.GetPropertyValue("SerialNumber").ToString();
    }
    catch { }
}

But in fact i want to learn PC(Machine) Serial Number(Written On PC Box'es top,bottom,right,left,front or back side).

In which table of Win32 has contains this information? I hope you understand me?


回答1:


The serial number is in the Win32_BIOS class.



来源:https://stackoverflow.com/questions/27196822/getting-machine-serial-number-with-wmi-class

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!