varsearch=newManagementObjectSearcher("SELECT * FROM Win32_BIOS");varmobos=search.Get();foreach(vartempinmobos){objectserial=temp["SerialNumber"];// ProcessorID if you use Win32_CPUpcsn=serial.ToString();Console.WriteLine(pcsn);}