Forcefully restart computer if restarting doesn't work
This commit is contained in:
parent
54542203e5
commit
4fd85abf67
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ class Context {
|
||||||
[void] Reboot() {
|
[void] Reboot() {
|
||||||
Write-Host "Restarting Computer...";
|
Write-Host "Restarting Computer...";
|
||||||
$this.RegisterReboot();
|
$this.RegisterReboot();
|
||||||
Restart-Computer;
|
Restart-Computer -Timeout 60;
|
||||||
|
Restart-Computer -Force;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue