Jump to content

Export AD User Membership Groups to CSV

From wiki.coreyblair.us
Revision as of 13:53, 2 October 2018 by Corey (talk | contribs) (Created page with "# Create the following directory (or use the directory of your choice) ::<code>c:\ADGroupQuery</code> # Open Powershell # Enter the following command changing "USERNAME" to th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  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]