Last active
September 16, 2018 19:11
-
-
Save benpturner/079bb17dde68e719ada28014162c7644 to your computer and use it in GitHub Desktop.
Whoami /groups
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
([Security.Principal.WindowsIdentity]::GetCurrent()); | |
$tl=@{Expression={((New-Object System.Security.Principal.SecurityIdentifier($_.Value)).Translate([System.Security.Principal.NTAccount])).Value};Label="Group Name";Width=400}; ([Security.Principal.WindowsIdentity]::GetCurrent()).Groups | FT $tl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment