Windows: batch to simultaneously uninstall multiple KB updates

In Windows to list the installed updates we can use these commands and to uninstal simultaneously multiple updates we can use the batch suggested here:

@echo off
for /f %%i in ('type c:\list.txt') do (
echo "Uninstalling KB%%i"
wusa /uninstall /kb:%%i /quiet /norestart
)

echo "Uninstallations Complete."
echo.echo "Rebooting..."
echo.
shutdown /r

In the file list.txt we have to indicate only the numbers of the update to remove.

Tags: