How to get Processor and Motherboard Id ?

Posted by Frank on Stack Overflow See other posts from Stack Overflow or by Frank
Published on 2010-03-12T22:06:56Z Indexed on 2010/03/12 22:07 UTC
Read the original article Hit count: 804

Filed under:
|
|

I use the code from http://www.rgagnon.com/javadetails/java-0580.html to get Motherboard Id, but the result is "null",

<1> How can that be ?

<2> Also I modified the code a bit to look like this to get processor Id :

"Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\")\n"+
                 "Set colItems = objWMIService.ExecQuery _ \n"+
                 "   (\"Select * from Win32_Processor\") \n"+
                 "For Each objItem in colItems \n"+
                 "    Wscript.Echo objItem.ProcessorId \n"+
                 "    exit for  ' do the first cpu only! \n"+
                 "Next \n";

The result is something like : ProcessorId = BFEBFBFF00010676

On http://msdn.microsoft.com/en-us/library/aa389273%28VS.85%29.aspx it says :

ProcessorId : 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.

I don't quite understand it, in plain English, is it unique or just a number for this class of processors, for instance all Intel Core2 Duo P8400 will have this number ?

Frank

© Stack Overflow or respective owner

Related posts about processor

Related posts about motherboard

  • Motherboard Wiring

    as seen on Super User - Search for 'Super User'
    HI All, I bought a new case to put a motherboard in. Everything fits, I have done this before, but not in a long time! The case has wires for - Power SW - Reset SW - Power LED - HDD LED On the motherboard (ASUS M2NPV-VM) it is clearly labeled where these go, but I cannot remember where the black… >>> More

  • xfx 680i motherboard failure?

    as seen on Super User - Search for 'Super User'
    At some point last night we must have had a blip in our power, as the stove clock was blinking like it would had their been... a blip in the power. When I came into my office this morning, my desktop computer was powered down and would not turn on. Cracking the case, I can see a small blue blinking… >>> More

  • Current Motherboard Tech Overview

    as seen on Super User - Search for 'Super User'
    Welp, computer died. Time to get a new motherboard. I haven't been paying attention to the latest motherboard technology and associated models and chipsets. Can someone point me at an overview of what is currently available? I'm primarily interested in the Intel / nvidia side of things. >>> More

  • Processor with higher FSB than motherboard can support.

    as seen on Super User - Search for 'Super User'
    Hi all, Please redirect me if there is a similar question, but I have an ECS P4VXASD2+ (V5.0) motherboard, which supports a 533 MHz FSB. I want to put in a Pentium 4 3.2 GHz processor (Socket 478) with an FSB of 800 MHz. Would this be possible? Would the FSB of the processor just be limited to 533… >>> More

  • How to get Processor and Motherboard Id ?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I use the code from http://www.rgagnon.com/javadetails/java-0580.html to get Motherboard Id, but the result is "null", <1 How can that be ? <2 Also I modified the code a bit to look like this to get processor Id : "Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\")\n"+ … >>> More