Find Your Computer's Serial Number - Easy Command Prompt and Script

Serial number sticker missing? Web site tool not working from the manufacturer? Need to find your serial number or service tag quickly without doing the whole BIOS thing? 

Use this command line: wmic bios get serialnumber 

How do you get a "command line"? 
Click on Start
Type "CMD" into the search bar
When the DOS window opens type in "wmic bios get serialnumber" (without the quote marks)
Want a handy little script to get it for you? 


VBS Script to get serial number and computer name

Set wshShell = WScript.CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
WScript.Echo "Computer Name: " & strComputerName

Set objWMIService = GetObject("winmgmts:\\" & strComputerName & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM Win32_ComputerSystemProduct",,48)

theValue = ""

For Each objItem in colItems
    theValue = objItem.IdentifyingNumber
Next

getPCSerialNumber = theValue

 WScript.Echo "Serial Number: " & theValue

Comments