uninstall Bulk Patches


In the event you install a bunch of patches that should not have been installed

You can do the following to bulk remove them

Get the list of patches that you need to remove.

Wmic qfe get hotfixid,installedon >>updates.csv

Open it up in excel and copy the KB by date to a new file remkb.txt use Replace to change KB to nothing. So you just have a bunch of numbers.

From a command line run the following (same dir as the txt file)
for /f %i in ('type c:\remkb.txt') do echo wusa /uninstall /kb:%i /quiet /norestart >> c:\uninstallkb.cmd

run the uninstallkb.cmd

your done reboot and hope it restarts properly J

reference
https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-unistall-all-windows-updates-at-once-i/2ac9e797-b9d4-46de-bee3-d93c3c409bda?page=1

Comments

Popular Posts