Created
June 10, 2015 11:12
-
-
Save matejskubic/5975829ac837edab8512 to your computer and use it in GitHub Desktop.
Saves user group membership to csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module ActiveDirectory | |
Get-ADPrincipalGroupMembership (Read-Host "Username")|select SamAccountName| sort SamAccountName | ConvertTo-Csv -NoTypeInformation > "$($env:TEMP)\user-groups.csv" | |
start "$($env:TEMP)\user-groups.csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment