Question

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

Hello,

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.

Answer

A:

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

Did this solve your problem?

Sorry this didn't help.

292 people were helped by this reply



 
Question Info

Views: 67,374 Last updated: May 20, 2018 Applies to: