locked
Finding computer serial numbers remotely RRS feed

  • Question

  • How do I find the serial numbers of pc's remotely that are NOT on the domain?  I found a vbscript that will find serial numbers, but the computers need to be on the domain for this to work.  Here is the script:

     

    ComputerName = InputBox("Machine Name To Query")

    winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
    Set SerialN = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")

    For each Serial in SerialN
    MsgBox "Serial Number: " & Serial.SerialNumber
    Next

     

    Does anyone know of a way to modify this script for pc's not on domain?  Is there a way to authenticate locally?

     

    I'm very new to vb scripting so any help would be appreciated - thanks!

    Thursday, December 11, 2008 6:29 PM

Answers