The following script works great on Dell servers to return tag/serial number information. How do I use a similar script to get the serial number of HP Proliant DL380 servers? Need to find server serial number with VBScript.

The following script works great on Dell servers to return tag/serial number information. How do I use a similar script to get the serial number of HP Proliant DL380 servers?

Dim strComputer, objWMIService, colItems, objItem strComputer = InputBox('Please enter the computer name or IP Address of a Dell machine:','Computer Name or IP Address') Set objWMIService = GetObject('winmgmts: ' & strComputer & ' root cimv2') Set colItems = objWMIService.ExecQuery('SELECT * FROM Win32_BIOS',,48) For Each objItem In colItems MsgBox 'Dell Service Tag: ' & objItem.SerialNumber Next MsgBox 'Finished' Select all. The same script should work, but typically depends on that information being populated in the BIOS.

There are numerous free products that scan remote systems and return the information. You might try WMI Asset Logger, it is a program that I wrote and is free (no spy/nag). Pc iso zone Anyway I'm not here to SPAM the forums so if you want to try just google it. You might also try getting the asset tag, I know this works for Dell, and HP.

Use the same code you posted above, changing Win32_BIOS to 'Win32_SystemEnclosure' and change objItem.SerialNumber to objItem.SMBIOSAssetTag. Asset tags are not always included, but they tend to show up on Dells.

You might try this one, I tried this on my LAN and found a few IBMs that held the serial information in this class, unfortunately I do not have any HP servers (although that truly shouldn't matter, the same IBMs also had the serial number under Win32_BIOS.SerialNumber) Have you tried to query any other WMI based information from the same system? StrComputer = '.'

I need to get the serial number and hostname from the computers in my environment. I thought while I was on a roll with scripting (thanks to the galactic-level scripting brainiacs), I would put something together with a batch script. The computers are Windows 7, mostly HP with >20 Dells. 96 hour chick embryo serial section 2

Script q serial number lookup

I would like to dump to a text file that made it easy to match up the serial # with the hostname for Excel use. If you know of a easier way (SpiceWorks is a possibility) let me know otherwise let's script this! Thanks in advance.

New Posts