Using Windows PowerShell you can easily export Active Directory group membership to CSV. First, start Windows PowerShell as an administrator and import the Active Directory PowerShell module.

Import-Module ActiveDirectory

Next, run the below command where “GroupName” is the name of the group you want to export the membership list.

Get-ADGroupMember -identity “GroupName” | select name | Export-csv -path "C:results.csv" -NoTypeInformation

If you have nested groups you will see the nested groups and not the members of those groups in the results.csv. If you want the members of those groups exported use the command below.

Get-ADGroupMember -identity “GroupName” -recursive | select name | Export-csv -path "C:results.csv" -NoTypeInformation

If you have a question or would like to make a request for something you would like to see on my blog feel free to reach out to me.

Related Posts

Active Directory

Join Centos 7 to a Windows Active Directory Domain

Integrating Centos 7 with Windows Active Directory When a user logs in to a Linux system, the username and password combination must be verified, or authenticated, as a valid and active user. Sometimes the information Read more…

Microsoft SQL Server

Detatch database failed for Server ‘SQL-SERVER’. Error 3703

While trying to dismount a database I ran into the error: Cannot detach the database ‘Database Name’ because it is currently in use. (Microsoft SQL Server, Error: 3703). This almost always happens due to an Read more…

Active Directory

Resolving SYSVOL JRNL_WRAP_ERROR in Windows Server

If you’ve encountered SYSVOL on a domain controller runnings Server 2008 and later you’ve probably encountered JRNL_WRAP_ERROR before. If you hadn’t or are unsure how to resolve the issue avoid following the steps listed in Read more…