Reading Time: < 1 minute

There are times when you want to call for support about a malfunctioning Workstation/Server and you cannot reach it physically in order to note the Serial Number / Service Tag.

You can retrieve this information with the following 2 ways.

1. By running the command “wmic bios get serialnumber” or “wmic csproduct get vendor,name,identifyingnumber” from an elevated command line.

Tip: You can use the command “wmic csproduct get name” to retrieve the local computer model.

2. Using a vbs script:

On Error Resume Next
Dim strComputer
strComputer = InputBox(“Enter the name of the computer:”)
Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)
Set colSMBIOS = objWMIService.ExecQuery (“Select * from Win32_SystemEnclosure”)
For Each objSMBIOS in colSMBIOS
MsgBox strComputer & “: ” & objSMBIOS.SerialNumber
Next

Addtional Information can be found on https://support.microsoft.com/en-us/kb/558124.