System.Security.Principal.NTAccount
System.Security.Principal.IdentityReference
$ntAccount = new-object System.Security.Principal.NTAccount $env:USERDOMAIN, $env:USERNAME $sid = $ntAccount.Translate([type]'System.Security.Principal.SecurityIdentifier') $sid.value
Index