EDN Admin
Well-known member
Im running the following code on a Windows XP SP3 machine with the purpose of obtaining its UUID:
On Error Resume Next<br/>
strComputer = "."<br/>
Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2")<br/>
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)<br/>
For Each objItem in colItems<br/>
Wscript.Echo "UUID: " & objItem.UUID<br/>
Next
and the result is all Fs. But when I run the Windows Management Instrumentation Tester:
C:WindowsSystem32wbemwbemtest.exe
and open the Win32_ComputerSystemProduct class it shows a UUID that is not all Fs.
Any idea why? And how to obtain the UUID on that machine?
View the full article
On Error Resume Next<br/>
strComputer = "."<br/>
Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2")<br/>
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)<br/>
For Each objItem in colItems<br/>
Wscript.Echo "UUID: " & objItem.UUID<br/>
Next
and the result is all Fs. But when I run the Windows Management Instrumentation Tester:
C:WindowsSystem32wbemwbemtest.exe
and open the Win32_ComputerSystemProduct class it shows a UUID that is not all Fs.
Any idea why? And how to obtain the UUID on that machine?
View the full article