Created
March 26, 2014 16:20
-
-
Save iqwirty/9787132 to your computer and use it in GitHub Desktop.
Get the friendly group names for a user
This file contains 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
# Load a handy Quest snap-in for Active Directory cmdlets | |
Add-PSSnapin Quest.ActiveRoles.ADManagement | |
Get-QADUser tommy.test | Select -ExpandProperty memberof | ` | |
ForEach-Object { ($_.split(','))[0].replace('CN=','') } | ` | |
Sort $_ | ` | |
Out-GridView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment