Wednesday, November 26, 2008

How to find computer serial number

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


3. How Can I Find Expiring Passwords?
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov08/hey1118.mspx

4. How Can I Find Old Computer Accounts?
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov08/hey1119.mspx





No comments: