Question : Find Remote Serial Number

How would I go about finding the serial number of a remote client/workstation? The client/workstation is part of a LAN, joined to the domain, and Active Directory is incorportated.  I need the serial number of the system and the only way I can get it is remotely.

Answer : Find Remote Serial Number

open notepad and type the following:

On Error Resume Next
Dim System
if Wscript.Arguments.Count >0 then
sSystem=Wscript.Arguments(0)
end if
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next

save the file as a visual basic script (extension .vbs), name it for example: pcserial.vbs
Run the script, it will ask you to type the machine name/IP, then it will display the Serial No of the machine.
Random Solutions  
 
programming4us programming4us