Skip to content

Instantly share code, notes, and snippets.

@ecspresso
Created September 18, 2020 15:02
Show Gist options
  • 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