Create Local User in Powershell
26. Juni 2010 | In: PowerShell
Hier ein Beispiel wie ein lokaler User mit Powershell erstellt wird.
$target = [ADSI]"WinNT://." $newuser = $target.Create("username", $_.Name) $newuser.SetPassword("the password") $newuser.SetInfo() $newuser.psbase.InvokeSet('AccountDisabled', $false) $newuser.SetInfo()