Always forcefully restart computer as backup plan
This commit is contained in:
parent
93b41e9f0a
commit
126c130f83
3 changed files with 7 additions and 3 deletions
scripts/Windows/OS
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue