Security Identifier (SID) eines Benutzers ermitteln
Autor: Dr. Holger Schwichtenberg
Umwandlung zwischen Kontoname und SIDHole Konto$Account = new-object system.security.principal.ntaccount("itv\hs") Übersetze in SID$SID = $Account.Translate([system.security.principal.securityidentifier]).value $SID Übersetze in Kontonamen$Account = new-object system.security.principal.securityidentifier("S-1-5-32-544") $Name = $Account.Translate([system.security.principal.ntaccount]).value $Name
$Account = new-object system.security.principal.ntaccount("itv\hs")
$SID = $Account.Translate([system.security.principal.securityidentifier]).value $SID
$Account = new-object system.security.principal.securityidentifier("S-1-5-32-544") $Name = $Account.Translate([system.security.principal.ntaccount]).value $Name
Liste aller Codebeispiele Definition '.NET Framework Class Library' PowerShell Community Portal