spacemancw
2008-03-16 20:02:32 UTC
I can get the serial number from my Dell and HP servers with this
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root
\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial-Number:" & objSMBIOS.SerialNumber
Next
I want to get the Product ID or Product number on my HP systems
There's a product number that looks like
416561-00
(Not the model number such as ProLiant DL380 G5, I can get the model
number no problem).
For HP warranty web site you have to enter the seial number and
product ID.
Thanx
Roger
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root
\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial-Number:" & objSMBIOS.SerialNumber
Next
I want to get the Product ID or Product number on my HP systems
There's a product number that looks like
416561-00
(Not the model number such as ProLiant DL380 G5, I can get the model
number no problem).
For HP warranty web site you have to enter the seial number and
product ID.
Thanx
Roger