Export AD User Membership Groups to CSV

From Wiki.CoreyBlair.US
Jump to navigation Jump to search
  1. Create the following directory (or use the directory of your choice)
c:\ADGroupQuery
  1. Open Powershell
  2. 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]

References

  1. Author: Henri Muldre, [1]