How to Export Members of a Particular AD Group


Native Auditing vs. Netwrix Auditor for Active Directory

Native Auditing Netwrix Auditor for Active Directory
Steps
  1. Open the Powershell ISE on your domain controller → run the following Powershell script (if you need to generate a report on a specific AD group, change the $nameofgroup parameter):

    $nameofgroup='*'
    $groupsusers=get-adgroup -filter $nameofgroup |
        ForEach-Object{
                    $settings=@{Group=$_.DistinguishedName;Member=$null}
            $_ | get-adgroupmember |
                  ForEach-Object{
                                           $settings.Member=$_.DistinguishedName
                        New-Object PsObject -Property $settings
                    }
        }
        $groupsusers | Export-Csv C:\Temp\GroupsUsers.csv -NoTypeInformation

    Sample report:
  1. Run Netwrix Auditor → click "Reports" → Navigate to Active Directory → Active Directory State-in-Time → Select "Group Members" → Click "View" (if you want to generate a report on a specific AD group, change the Group Path parameter).

    Sample report:

Keep Active Directory Groups under Control by Reviewing Membership Reports

A manager or compliance auditor might ask an IT admin to export AD group members into a report for review. Having an Active Directory tool that can quickly export any group members into a readable format will enable the IT admin to fulfill such requests far faster than they could using native tools.

Netwrix Auditor for Active Directory enables IT admins to quickly generate a report on Active Directory group members in an easy-to-read format. They can export Active Directory group members to CSV or PDF format, so they have the flexibility to easily respond to any request.

Join the discussion