Server Fault is a question and answer site for system and network administrators. 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

I'm having an issue on my server when working with my VM guests, and I think its due to a recently installed update. What is the correct command to uninstall Windows Updates from either the command prompt, or Powershell?

share|improve this question
up vote 14 down vote accepted

To obtain a list of installed patches you can do:

wmic qfe list

To uninstall a listed patch, you do:

wusa /uninstall /kb:<kbnumber>

Here are some links with more information: http://www.systemcentercentral.com/BlogDetails/tabid/143/indexid/57960/Default.aspx http://support.microsoft.com/kb/934307
http://technet.microsoft.com/en-us/library/dd883262(WS.10).aspx

Note: the 934307 KB article says that you can't use /uninstall on Windows 2008 - this does not apply to Windows 2008 R2 - they enabled the uninstall switch on R2 (see the last link).

share|improve this answer
    
Thank you sir, I was digging forever for that one simple command. – DanBig Feb 10 '10 at 15:56
    
wusa is just for Windows Vista and above OS. And what about Windows 2003 servers and Windows XP? It's seems that you need to install the Windows Installer 4.5. msdn.microsoft.com/en-us/library/aa372856(v=vs.85).aspx Thank you. – fedayn Mar 16 '15 at 7:14

Since I just ran into this, and it's not clear from the documentation, when using wusa /uninstall /kb:<kb number> make sure you're using the actual number from the KB, not the number and the KB.

Wrong: wusa /uninstall /kb:KB123456

Right: wusa /uninstall /kb:123456

share|improve this answer

And to do it from a remote computer : wmic /node:SRVNAME process call create "powershell wusa /uninstall /kb:2639043 /quiet /norestart"

and wusa /? to have more information on parameters

share|improve this answer

Your Answer

 
discard

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.