Export AD User Membership Groups to CSV
Jump to navigation
Jump to search
- Create the following directory (or use the directory of your choice)
c:\ADGroupQuery
- Open Powershell
- Enter the following command changing "USERNAME" to the name of the user you are trying to populate memberships for
Get-ADPrincipalGroupMembership USERNAME | Select Name | Export-CSV -path C:\ADGroupQuery\USERNAME.csv -NoTypeInformation
[1]