From 8af0d2eebcc7ef299aa881216b1589afd27b6179 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Tue, 28 Oct 2025 16:39:01 +0000 Subject: [PATCH] Hopefully improve restart method --- RemoveWindowsAi.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index 2ed7beb..c45e109 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -2019,7 +2019,7 @@ else { if ($ogExecutionPolicy) { Reg.exe add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell' /v 'ExecutionPolicy' /t REG_SZ /d $ogExecutionPolicy /f >$null } - Restart-Computer -Force + shutdown /r /t 5 /c "Restart system to remove Windows AI" } $window.Close()