Hopefully improve restart method
This commit is contained in:
@@ -2019,7 +2019,7 @@ else {
|
|||||||
if ($ogExecutionPolicy) {
|
if ($ogExecutionPolicy) {
|
||||||
Reg.exe add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell' /v 'ExecutionPolicy' /t REG_SZ /d $ogExecutionPolicy /f >$null
|
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()
|
$window.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user