Windows Server 2003
1825163 Members
3914 Online
109679 Solutions
New Discussion юеВ

Windows Management Instrumentation (WMI)

 
SOLVED
Go to solution
Jackson Rocha
New Member

Windows Management Instrumentation (WMI)

I wonder if HP will provide through the Windows Management Instrumentation WMI, which is possible to read information from hardware and software of the machine, the information in the motherboard, I have the model ML570, ML110, ML370 and DL180 and none this shows that information.
9 REPLIES 9
Edgar Zapata
Esteemed Contributor

Re: Windows Management Instrumentation (WMI)

Hi Jackson,

Try running this:

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "Vendor: " & objItem.Vendor
Wscript.Echo "Version: " & objItem.Version
Next

Hope it helps.

Edgar.
Jackson Rocha
New Member

Re: Windows Management Instrumentation (WMI)

Hi Edgar!

Ran the class "Select * from Win32_ComputerSystemProduct" but only returns the serial of equipment (BIOS), not the data of the motherboard.
How do I run the query you sent?

Thanks
Edgar Zapata
Esteemed Contributor

Re: Windows Management Instrumentation (WMI)

Hi Jackson,

Save this within a file:

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "Vendor: " & objItem.Vendor
Wscript.Echo "Version: " & objItem.Version
Next


Name the file VendorNVer.vbs or whatever.
The file should be .vbs file though.

Then, you Start - run - cmd and then press enter.
Type the following
cscript VendorNVer.vbs and then press enter.

Hope it helps.

Edgar.
Jackson Rocha
New Member

Re: Windows Management Instrumentation (WMI)

Hi Edgard,

Run the query, get the manufacturer's name and version of the equipment I need is the serial of the motherboard, and whether HP will provide such detail for software inventory.
Thank you,
Edgar Zapata
Esteemed Contributor

Re: Windows Management Instrumentation (WMI)

Use iLo or Systems Management Homepage.
Both tools can tell you the S/N of the motherboard.

Just be aware that whenever you change the iLO card or the motherboard itself.

Jackson Rocha
New Member

Re: Windows Management Instrumentation (WMI)

Even if I change, even change the WMI query it does not save the edit and still not get the information from the serial motherboard, I think I will give this information in the inventory.

Edgar if you have any solution I am very grateful.

Thank you very much
Edgar Zapata
Esteemed Contributor

Re: Windows Management Instrumentation (WMI)

Hi,

Finally got it, check this out.

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "S/N: " & objItem.IdentifyingNumber
Next

Plus, here's a 30-day trial period software that can do the inventory job for you.
http://www.softinventive.com/downloads/tni-setup.exe
I know this tool can be used to retrieve SN, Server maker and model among other data.
It's called Network Asset tracker.

Hope it works.

Edgar.
Edgar Zapata
Esteemed Contributor
Solution

Re: Windows Management Instrumentation (WMI)

I wasn't through yesterday.
Be aware that if you change the system board, iLO card or battery you need to make sure that the same SN remains the same in the NVRAM.

I didn't know this myself, so here you'll find really valuable information I strongly recommend reading:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1204890

Hope it helps.
Edgar.
Jackson Rocha
New Member

Re: Windows Management Instrumentation (WMI)

Edgar, good afternoon!

Had this process of inventory, as HP does not provide the serial number of your motherboard for software inventory, only newer equipment, thank you for help, even once.

Jackson