How can i uninstall all the Installed Windows Updates in a single shot?


My recently built test machine was running a clean install of Windows 7. It was fine up until the Automatic updates kicked in, the following reboot saw things go haywire with the Desktop. since it was a new install with no third party installs, a faulty update is culpable more or less.  a System Restore availed nothing.

So, despite going with a clean re-install allover, i was wondering of possible ways (a PS, Batch script maybe) to auto uninstall updates from the inception. 

Any help would be greatly appreciated.


Awesome... Thanks man.

Some of the info did not show up in your post, but I was able to figure it out.

  1. Obtain the list of updates:
    wmic qfe get hotfixid >> c:\list.txt
    (This will get you the list of all updates that are currently installed.)
  2. Open C:\list.txt in Notepad. (Remove the first line, it's just the title)
  3. Generate this uninstall script:
    for /f %i in ('type c:\list.txt') do echo wusa /uninstall /kb:%i /quiet /norestart >> c:\uninstall.cmd
  4. Go to Edit > Replace and set the following field values: (CTRL+H, Replace "/kb:KB" with "/KB:")
  5. Run the resulting script.
  6. Reboot the node.

NOTE: This is what the syntax should look like after you edit with CTRL+H.

wusa /uninstall /KB:981391 /quiet /norestart

354 people found this reply helpful


Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.


Question Info

Last updated July 22, 2021 Views 95,622 Applies to: