Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Basically, what can be achieved by going to Control Panel > Uninstall a Program > View Installed Updates > Right Click Uninstall, but through the command line? Looking for a way that works across the Windows platform but if (and according to my reading, most likely) it's version dependent so be it.

Maybe something like:

C:\command /uninstall "Security Update for Windows 7 for x64-based Systems (KB2705219)"

Looks like using the KB would be great but wusa.exe works for the above example update but not for say "Security Update for Silverlight (KBXXXXXXXX)". Not much consistency.

I'm really surprised there isn't much documentation on this. How does an app like WUInstall do it?

Follow up question is how is that list of "View Installed Updates" populated? I've searched the registry like crazy hoping for an "UninstallString" or equivalent but only found references to the regular Add/Remove Programs list.

share|improve this question
Related:…. Not a direct duplicate, but one of the answers there applies. – Indrek Sep 12 '12 at 1:48
@Indrek thanks for the comment! Rolling back to a previous restore point is one way to handle it and I got that done, no problem. But it would be a pain to undo x amount of updates when only one of them needs to be removed. And as stated in the question, I'd really love to know how WUInstall does it. – Miguel Moll Sep 12 '12 at 2:01
This answer uses wuinstall to remove an update with a known KB number: – paradd0x Sep 12 '12 at 2:38
Hey @ThiagoM! I know wuinstall can do it. But I was hoping to not depend on a third-party app. I imagine wuinstall is using something provided by the OS, no? – Miguel Moll Sep 12 '12 at 2:57
@radioact1ve wusa /uninstall /kb:{update ID} ... or did i miss something?… – Moab Sep 12 '12 at 21:34

For Server 2003 and XP you could try:

C:\WINDOWS\$NtUninstallKB940157$\spuninst\spuninst.exe /quiet /norestart

Where the KB number would be the KB you would like to kill.

share|improve this answer
Yes this is what I've been using. Works great. – Miguel Moll Nov 16 '12 at 6:08

You can use use wusa /uninstall /kb:{updateid}

share|improve this answer
What are the prerequisites for wusa? For instance, what versions of Windows? – Peter Mortensen Oct 9 '13 at 12:42
@PeterMortensen - from XP 32bit up, according to and at least from Vista up according to but that is probably because Microsoft stopped XP support – a13ph Jun 25 '14 at 11:52

i find this very nice utility :

Windows Updates Uninstaller Utility This utility (scripted in AutoHotKey) allows you to batch uninstall the Windows Updates you want from your system. It does not uninstall Service Packs, so you need to uninstall those manually. Works in Windows XP, Vista, 7, 8 and 8.1. Installation There's no need to install anything, the executable is portable so you just need to download it and run it. The executable will create a temporal text file in its parent directory while it runs, and it will remove it automatically once it doesn't need it anymore.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .