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/Scripts

View file

@ -284,10 +284,14 @@ class Context {
[void] Reboot() {
Write-Host "Restarting Computer...";
$this.RegisterReboot();
$this.RestartComputer();
exit;
}
[void] RestartComputer() {
Restart-Computer;
Start-Sleep 60;
Restart-Computer -Force;
exit;
}
[void] Cleanup() {