tr>
Enter your e-mail address to subscribe to our mailing list...
Powered by Aardvark Mailing List

iphone 3gs for as little as $215?!?+free worldwide shipping

Click here to get your free mobile phone or apple ipod

Sunday, June 28, 2009

how retrieve the serial number of your computer

Instructions


Please use one the method bellow to retrieve the computer serial number:


1. Using the buid in "wmic" command:

"wmic bios get serialnumber"



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

No comments:

Post a Comment