Hi I have a script that list all users and nested groups for the admin
group. How can I have it list all groups and nestsed groups and users?
I am a newb and really appreciate the help.

Here is the script

Option Explicit
Dim objGroup, strComputer

strComputer = "."

Set objGroup = GetObject("WinNT://" & strComputer &
"/Administrators,group")
Wscript.Echo "Members of local Administrators group on computer " &
strComputer
Call EnumGroup(objGroup, "")

Sub EnumGroup(objGroup, strOffset)
Dim objMember
For Each objMember In objGroup.Members
Wscript.Echo strOffset & objMember.Name & " (" & objMember.Class &
")"
If (objMember.Class = "Group") Then
Call EnumGroup(objMember, strOffset & "--")
End If
Next
End Sub



--
LPDale
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------