w10install/optional/block-updates.cmd

16 lines
333 B
Batchfile
Raw Normal View History

2023-01-22 22:32:07 +01:00
@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
echo ####### %0 #######
echo blocking UPDATE KB5005463 aka. PC-Health ...
powershell -command "Hide-WindowsUpdate -KBArticleID KB5005463 -AcceptAll"
echo showing WINDOWS updates ...
powershell -command "Get-WindowsUpdate"
echo ####### %0 #######
pause