0

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?

Uyghur Lives Matter
  • 18,820
  • 42
  • 108
  • 144
Hasan Yaman
  • 13
  • 1
  • 1
  • 4

1 Answers1

2

The serial number is in the Win32_BIOS class.

Black Frog
  • 11,595
  • 1
  • 35
  • 66
  • In my case the value was not the good one ... still searching – Benoit Apr 04 '18 at 04:03
  • What do you mean not good? Sounds like your manufacturer didn’t set the serial number. Who makes the computer you are testing? – Black Frog Apr 04 '18 at 05:11
  • MSI. Its strange because after re-verifying, the app from msi tell me this serial number to, but the laptop sticker show an other s/n. And the one on the box is the same as the one on the laptop sticker. – Benoit Apr 04 '18 at 23:26