Disable auto login after user creation
This commit is contained in:
parent
63906c53ce
commit
c2c3210515
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ function New-PersonalUser([Context] $context)
|
|||
|
||||
Write-Host "Registering setup script for all new users";
|
||||
$context.RegisterNewUserReboot();
|
||||
$context.RemoveAutologin();
|
||||
Restart-Computer;
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue