Skip to content

Instantly share code, notes, and snippets.

@iqwirty
Created March 26, 2014 16:20
Show Gist options
  • Save iqwirty/9787132 to your computer and use it in GitHub Desktop.
Save iqwirty/9787132 to your computer and use it in GitHub Desktop.
Get the friendly group names for a user
# 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