Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Created March 30, 2021 12:16
Show Gist options
  • Save FrankDeGroot/1b16ea5d741881eece8b9f711eb413b2 to your computer and use it in GitHub Desktop.
Save FrankDeGroot/1b16ea5d741881eece8b9f711eb413b2 to your computer and use it in GitHub Desktop.
List group membership of current user
whoami /groups /fo list | findstr /c:"Group Name:" | % {$_.replace("Group Name: ","")} | Sort-Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment