How to View the Serial Number of any Desktop/Server

A quick tip to find the serial number of any computer or any servers in few clicks. Finding the serial numbers of a remote computer is pretty hard when you had to provide it to the hardware vendor for any sort of support. So if you don’t have all these information documented properly it will be difficult for you to get the required details as serial numbers are mostly found on the hardware as labeled.

We can make use of the below VB script to gather the information from any servers. The below script needs to be copied to notepad and should be saved as .vbs extension. That’s it. When you run this script on any server it will display the Server Brand and Serial number.

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

Related Posts Plugin for WordPress, Blogger...