Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. $objUser = New-Object System.Security.Principal.NTAccount("domain", "mozaid")
  2. $strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
  3.  
  4. $strSID.Value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement