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()