3 replies
by knohr Accepted solution
by dan.cox Accepted solution
You could use a VBScript to query your machines.
Check out the Scripting guys from Microsoft.
Here is one example of something you could use.
http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr06/hey0413.mspx
With some modifications you could use this to query your machines and get the info you are looking for.
by knohr Accepted solution
strComputer = "rkc-f467191"
strTestString = "/" & strComputer & "/"
Set colGroups = GetObject("WinNT://" & strComputer & "/Administrators")
For Each objUser In colGroups.Members
If InStr(objUser.AdsPath, strTestString) Then
Wscript.Echo "Local user: " & objUser.Name
Else
Wscript.Echo "Domain user: " & objUser.Name
End If
Next
When running the above script, I get the message,
Runtime error '424'; Object required
What am I doing wrong.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending