Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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 3 '12 at 13:03

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:

    Remove (this action is possible only if the update supports uninstall)

(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.

share|improve this answer
It's important to keep in mind that not all updates can be uninstalled. Check the update description. – John Gardeniers Sep 3 '12 at 13:02
@johngardeniers right, good point. I should stop assuming everyone bothers to RTFM. – HopelessN00b Sep 3 '12 at 14:04
yes you should, because there's precious little evidence to suggest people do RTFM. – John Gardeniers Sep 4 '12 at 0:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.