Always forcefully restart computer as backup plan

This commit is contained in:
Manuel Thalmann 2023-07-16 11:21:58 +02:00
parent 93b41e9f0a
commit 126c130f83
3 changed files with 7 additions and 3 deletions
scripts/Windows/OS

View file

@ -46,7 +46,7 @@ function New-PersonalUser([Context] $context)
Write-Information "Disabling Auto login";
$context.RemoveAutologin();
$context.SetStage("DisableUAC");
Restart-Computer;
$context.RestartComputer();
exit;
}
elseif ($context.GetStage() -eq "DisableUAC")