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

Anonymous
2011-07-14T13:10:43+00:00

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.

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2015-04-09T13:12:25+00:00

    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

    385 people found this answer helpful.
    0 comments No comments

38 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-07-14T14:18:42+00:00

    Perform a system restore to a restore point before you completed the updates.

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2011-07-14T23:30:34+00:00

    Ditto!!  Next time try creating a Restore Point after a fresh new install of the O/S before you run an update. Suggest unplugging your Ethernet cable while doing the install.

    1 person found this answer helpful.
    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more