title: How to get Processor and Motherboard Id?
body: <p>I used the code from <a href="http://www.rgagnon.com/javadetails/java-0580.html" rel="nofollow noreferrer">http://www.rgagnon.com/javadetails/java-0580.html</a> to get Motherboard Id, but the result is "null".</p>
  
  <ol>
  <li><p>How can that be?</p></li>
  <li><p>Also I modified the code a bit to look like this to get ProcessorId:</p>
  
  <pre><code>"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";
  </code></pre></li>
  </ol>
  
  <p>The result is something like: <code>ProcessorId = BFEBFBFF00010676</code></p>
  
  <p>On <a href="http://msdn.microsoft.com/en-us/library/aa389273%28VS.85%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa389273%28VS.85%29.aspx</a> it says:</p>
  
  <blockquote>
    <p><strong>ProcessorId:</strong> 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.</p>
  </blockquote>
  
  <p>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?</p>