0% found this document useful (0 votes)
101 views3 pages

How To Bulk Uninstall Windows Updates

This document provides instructions for uninstalling Windows updates on a system using batch scripting. It involves using WMIC commands to export a list of installed updates to a text file, then filtering that file to isolate just the KB numbers. A batch script is then created to loop through the KB numbers, uninstalling each one quietly and without restart using the Windows Update removal tool.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views3 pages

How To Bulk Uninstall Windows Updates

This document provides instructions for uninstalling Windows updates on a system using batch scripting. It involves using WMIC commands to export a list of installed updates to a text file, then filtering that file to isolate just the KB numbers. A batch script is then created to loop through the KB numbers, uninstalling each one quietly and without restart using the Windows Update removal tool.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

This worked for me best.

1. Open command prompt as Admin

2. wmic qfe get hotfixid > c:\list.txt

3. Get the date the updates were installed on from the c:\list.txt then use that date for the next step.

3. wmic qfe get hotfixid,installedon | findstr MM/DD/YYYY > c:\list.txt

4. Open c:\list.txt > Edit > Replace > Find what: kb | Replace with: <blank>

5. Again, Edit > Replace > Find what: MM/DD/YYY | Replace with <blank>

6. Open blank text file and insert

@echo of

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

6. Save file as .bat

7. Execute batch file

NOTE: Replace MM/DD/YYYY with date listed under 'InstalledOn' in the 'c:\list.txt' for the updates you
wish to uninstall.

Your c:\list.txt file should look like this and nothing else:

123456

123456

123456

123456
123456

(the numbers above will vary based on the KB number associated with it; you won't necessarily see
'123456')

You might also like