Hopefully improve restart method

This commit is contained in:
2025-10-28 16:39:01 +00:00
parent 8fc5c96382
commit 8af0d2eebc

View File

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