Thursday, 13 December 2012

Uninstall Windows Patches with Batch Script




Example of Script

for /f "eol=; tokens=1" %%i in (C:\KBNames.txt) do call :PROCESS %%i

goto :EOF

:PROCESS
set KB=%*
start /wait %windir%\$NtUninstall%KB%$\spuninst\spuninst.exe /quiet /norestart
:Exit


Example of KBNames.txt

KB1234567
KB2345678
KB1234567
KB2345678
KB1234567
KB2345678

No comments:

Post a Comment