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/Scripts
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue