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"?
VBS Script to get serial number and computer name
Use this command line: wmic bios get serialnumber
How do you get a "command line"?
Click on StartWant a handy little script to get it for you?
Type "CMD" into the search bar
When the DOS window opens type in "wmic bios get serialnumber" (without the quote marks)
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
Post a Comment