Always forcefully restart computer

This commit is contained in:
Manuel Thalmann 2023-07-16 11:30:20 +02:00
parent 126c130f83
commit 3d23ce78bc
3 changed files with 3 additions and 6 deletions
scripts/Windows/Scripts

View file

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