GUID of machine name

Discussion in 'Scripting' started by James, Aug 31, 2005.

  1. James

    James Guest

    can i get the GUID machine name ?

    any script i can look at , or url i can read ?
    James, Aug 31, 2005
    1. Advertisements

  2. On Error Resume Next
    Set objComputer =
    objProperty = objComputer.Get("objectGUID")
    If IsNull(objProperty) Then
    Wscript.Echo "The GUID has not been set for this computer."
    Wscript.Echo "GUID: " & objProperty
    objProperty = Null
    End If

    replace the section CN=atl-dc-01,CN=Computers,DC=fabrikam,DC=com with the
    distinguishedName of computer you want to find the GUID of. Or you could add
    in extra code to look up the DN given a machine name.
    IC Windows Admin, Aug 31, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.