Printing members of an Active Directory group

  • Thread starter Thread starter Chuck
  • Start date Start date
C

Chuck

How do I print a list of the members of a specific
group in Active Directory? The only way I have found is
doing a print screen of the members tab inside the group
properties. Is there a way to print the entire list of
users that belong to a group? Thanks for the help.
 
(This works in an NT domain anyway):
make a .vbs scripts and put the following in it:

Set Group = GetObject("WinNT://domainname/groupname")
For Each Member in Group.Members
wscript.echo Member.Name
Next

(execute the script with cscript.exe, not wscript.exe)
 
Back
Top