$SID = New-Object System.Security.Principal.SecurityIdentifier(“S-1-5-21-1114462570-1726162390-2557311802-1107 “) $User = $SID.Translate( [System.Security.Principal.NTAccount]) $User.Value
WeiterlesenTag: 12. Januar 2017
Powershell AD – Username to SID
$User = New-Object System.Security.Principal.NTAccount(“NDS”) $SID = $User.Translate([System.Security.Principal.SecurityIdentifier]) $SID.Value
Weiterlesen