Difference between revisions of "Export AD User Membership Groups to CSV"

From Wiki.CoreyBlair.US
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 08:53, 2 October 2018

  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]