Create Local User in Powershell
Posted On 26. Juni 2010
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()