mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2025-12-17 07:06:29 +01:00
remove key press for noninteractive mode fix #38
This commit is contained in:
@@ -2174,7 +2174,9 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$nonInteractive) {
|
||||||
Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green
|
Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green
|
||||||
$Host.UI.RawUI.ReadKey() *>$null
|
$Host.UI.RawUI.ReadKey() *>$null
|
||||||
|
}
|
||||||
|
|
||||||
exit
|
exit
|
||||||
Reference in New Issue
Block a user