Remotely find a Server’s Manufacturer and Serial Number

There has too often been a situation that has come up where I have needed to remotely obtain a server’s manufacturer & serial number (parts replacement, TAC case, etc…) and either the documentation that I have is incomplete, or just non-existent.

There are many ways that you can attempt to get this information (ILO/RSA ports, SNMP walks, device monitoring platforms) but the simplist and least time consuming has been to run the following windows script:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colBIOS = objWMIService.ExecQuery _
("Select * from Win32_BIOS")
For each objBIOS in colBIOS
Wscript.Echo "Manufacturer: " & objBIOS.Manufacturer
Wscript.Echo "Serial Number: " & objBIOS.SerialNumber
Next

Just copy the above into Notepad and save it as a .vbs file.