Forcefully restart computer if restarting doesn't work

This commit is contained in:
Manuel Thalmann 2023-07-16 02:17:03 +02:00
parent 54542203e5
commit 4fd85abf67

View file

@ -284,7 +284,8 @@ class Context {
[void] Reboot() {
Write-Host "Restarting Computer...";
$this.RegisterReboot();
Restart-Computer;
Restart-Computer -Timeout 60;
Restart-Computer -Force;
exit;
}