Free Tool to Generate Group Membership List

Posted on 2009-12-21
Last Modified: 2012-06-27
I am looking for a free tool that would generate report of Group Membership.

Thank you very much.
Question by:btptech1
    LVL 31

    Expert Comment

    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:  
     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)  

    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  
     Enumerating Members in a Large Group  
     Searching Using Range Retrieval  
     Attribute Range Retrieval

    LVL 7

    Expert Comment

    we are using dumpsec to generate reports it a free and very complete reporter
    you can find it here
    LVL 47

    Expert Comment

    LVL 11

    Expert Comment

    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.

    LVL 11

    Accepted Solution

    Forgot the code

    :: *** BATCH SCRIPT START ***
    @Echo Off
    IF NOT EXIST C:\groups.txt Goto ShowErr
    FOR %%R IN (C:\groups.txt) Do IF %%~zR EQU 0 Goto ShowErr
    IF EXIST C:\GroupMembers.txt DEL /F /Q C:\GroupMembers.txt

    FOR /F "delims=#" %%g in (C:\groups.txt) Do (
          Echo Retrieving members of group: %%g
          Echo Retrieving members of group: %%g               >>C:\GroupMembers.txt
          DSQuery group -name "%%g*" | dsget group -members >>C:\GroupMembers.txt
          Echo. >>C:\GroupMembers.txt

    Goto EndScript
    Echo C:\groups.txt file does not exist or file is empty!
    :: *** BATCH SCRIPT END ***

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now