Thursday, October 4, 2018

How to get Processor ID in C#

var mbs = new ManagementObjectSearcher("Select ProcessorID From Win32_processor");
            var mbsList = mbs.Get();

            foreach (ManagementObject mo in mbsList)
            {
               string cpuid = mo["ProcessorID"].ToString();
            }

1 comment: