Disable auto login after user creation

This commit is contained in:
Manuel Thalmann 2023-06-25 18:26:06 +02:00
parent 63906c53ce
commit c2c3210515

View file

@ -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;
}