'==== START FILE \GetLocalGroupsAndUsers.vbs ==========================
' USAGE: Start - Run - type cmd.exe - go to this script folder
' and type cscript GetLocalGroupsAndUsers.vbs > GroupsAndUsers.txt&GroupsAndUsers.txt
'PLACE HERE YOUR HOSTNAME
'
strComputer = "hostName"
Set colGroups = GetObject("WinNT://" & strComputer & "")
colGroups.Filter = Array("group")
For Each objGroup In colGroups
For Each objUser in objGroup.Members
If 1=1 Then
Wscript.Echo objGroup.Name + " --- " + objUser.name
End If
Next
Next
'==== END FILE \GetLocalGroupsAndUsers.vbs ==========================
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!