Skip to content

Instantly share code, notes, and snippets.

@ecspresso
Created September 18, 2020 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecspresso/f6d615613bcd1d5493c876878ac7fdeb to your computer and use it in GitHub Desktop.
Save ecspresso/f6d615613bcd1d5493c876878ac7fdeb to your computer and use it in GitHub Desktop.
[System.Security.Principal.NTAccount]::new($(whoami.exe)).Translate([System.Security.Principal.SecurityIdentifier]).Value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment