Is it possible to make a batch file to uninstall a specific windows update (eg. KBxxxxxx)? We use 20 year old web based software to enter hours where I work and a new update is causing the program to crash. The update was blocked on our wsus server, but quite a few machines pulled the update before it was blocked. (we should just move to new software, but unfortunate this is not an option). Any help would be greatly appreciated.
Asked
Active
Viewed 1,973 times
1
-
You really will need to make upgrading or replacing the software an option. You can be assured you will run into problems with future updates as well (and this is why we test updates before rolling them out). – John Gardeniers Sep 03 '12 at 13:03
1 Answers
1
Yes, it is. It's largely the same process for installing an update or application with a batch file. (Unfortunately I don't have an example lying around at the moment, since I stopped doing that long ago, and use one of the other methods below.)
Since you mention a WSUS server, I should point out that it's actually a much better idea to uninstall the update through your WSUS server than with a batch file or script. It's safer because it's less likely to result in a botched uninstall or a partial uninstall.
Approval actions include the following:
Install
Remove (this action is possible only if the update supports uninstall)
Detect-only
Decline
(So set the update's approval status to "remove.")
If you're deadest on a scripted solution, though, and have PowerShell, the Scripting Guy has an example of how to do it with PowerShell.

HopelessN00b
- 53,795
- 33
- 135
- 209
-
1It's important to keep in mind that not all updates can be uninstalled. Check the update description. – John Gardeniers Sep 03 '12 at 13:02
-
@johngardeniers right, good point. I should stop assuming everyone bothers to RTFM. – HopelessN00b Sep 03 '12 at 14:04
-
yes you should, because there's precious little evidence to suggest people do RTFM. – John Gardeniers Sep 04 '12 at 00:23