Page 1 of 1

CPU ID

Posted: Thu Sep 29, 2016 3:30 am
by unixkd
Hi all

I need a function to determine CPU ID of a PC

Thanks

Joe

Re: CPU ID

Posted: Thu Sep 29, 2016 5:45 am
by Leon Berger
Reg key HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS

Re: CPU ID

Posted: Thu Sep 29, 2016 7:04 am
by unixkd
Hi Leon Berger,

How ?

I don't understand

Joe.

Re: CPU ID

Posted: Thu Sep 29, 2016 10:14 am
by Auge_Ohr
hi,

try WMI : Win32_Processor

Re: CPU ID

Posted: Thu Sep 29, 2016 1:44 pm
by psc
If you're looking for the processor serial number, I think that was only available on Pentium III's, and is no longer available in modern Intel CPU's.
The ProcessorID field in Auge_Ohr's excellent program is actually the processor feature set.
ProcessorId
Data type: string
Access type: Read-only
Qualifiers: MappingStrings ("SMBIOS|Type 4|Processor Information|Processor ID")
Processor information that describes the processor features. For an x86 class CPU, the field format depends on the processor support of the CPUID instruction. If the instruction is supported, the property contains 2 (two) DWORD formatted values. The first is an offset of 08h-0Bh, which is the EAX value that a CPUID instruction returns with input EAX set to 1. The second is an offset of 0Ch-0Fh, which is the EDX value that the instruction returns. Only the first two bytes of the property are significant and contain the contents of the DX register at CPU reset—all others are set to 0 (zero), and the contents are in DWORD format.
This value comes from the Processor ID member of the Processor Information structure in the SMBIOS information.
Excerpt from https://en.wikipedia.org/wiki/CPUID#EAX ... ial_Number

If you want the CPU features, like the processor model, speed, etc. then Auge_Ohr's program is just right. If you want something like the old PIII processor serial number, than this is probably not what you need.

psc