Link to home
Start Free TrialLog in
Avatar of btptech1
btptech1Flag for United States of America

asked on

Free Tool to Generate Group Membership List

Hello,
I am looking for a free tool that would generate report of Group Membership.

Thank you very much.
Avatar of Justin Owens
Justin Owens
Flag of United States of America image

Are you wanting something that enumerates AD and generates a complete report of all Groups, or are you wanting something that gives you a report of one group?

The easiest way to do it is if you can use the Quest AD cmdlets and use Get-QADGroupMember from here:
 http://www.quest.com/activeroles-server/arms.aspx  
   
 If you need to do it with code then  
   
 $group = [ADSI] "LDAP://cn=Accounts,ou=AllGroups,dc=starking,dc=org"  
 foreach ($member in $group.member)  
 {  
 $member  
 }  

If your group has over 1000 members, this will only grab the first 1000.  If you need more than that, try these sources:

Enumerating Groups That Contain Many Members  
 http://msdn2.microsoft.com/en-us/library/ms676302.aspx  
   
 Enumerating Members in a Large Group  
 http://msdn2.microsoft.com/en-us/library/ms180907.aspx  
   
 Searching Using Range Retrieval  
 http://msdn2.microsoft.com/en-us/library/aa367017.aspx  
   
 Attribute Range Retrieval  
 http://msdn2.microsoft.com/en-us/library/aa772308.aspx

Justin
we are using dumpsec to generate reports it a free and very complete reporter
you can find it here
http://www.systemtools.com/somarsoft/?somarsoft.com
Regards,
Jose
Avatar of Don
Here is a script from farhan that gets all group members to a file

* Following batch script will get all the members of groups that are specified in Groups.txt file.
* It will generate a file on C: drive root with name GroupMembers.txt having all members information.
* Copy and paste following script in notepad and save it with .BAT extension.

ASKER CERTIFIED SOLUTION
Avatar of bsharath
bsharath
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial