Powershell AD – Username to SID 12. Januar 2017 Jörn Walter Skripte $User = New-Object System.Security.Principal.NTAccount(“NDS”) $SID = $User.Translate([System.Security.Principal.SecurityIdentifier]) $SID.Value