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() {
|
||||
Write-Host "Restarting Computer...";
|
||||
$this.RegisterReboot();
|
||||
Restart-Computer;
|
||||
Restart-Computer -Timeout 60;
|
||||
Restart-Computer -Force;
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue