From 93b41e9f0a6922c6fe43b0cf036039b4434c45e4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 16 Jul 2023 10:55:25 +0200 Subject: [PATCH] Fix non-functioning code --- scripts/Windows/Scripts/Context.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index cfb13eef..45acbaba 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -284,7 +284,8 @@ class Context { [void] Reboot() { Write-Host "Restarting Computer..."; $this.RegisterReboot(); - Restart-Computer -Timeout 60; + Restart-Computer; + Start-Sleep 60; Restart-Computer -Force; exit; }