Article ID: 115029, created on Oct 26, 2012, last review on Aug 12, 2014

  • Applies to:
  • Virtuozzo containers for Windows 4.6


Sometimes it is necessary to uninstall a set of Windows updates that were installed on a specific date. There is a procedure for Windows 2008 R2 servers that allows you to do this quickly.


NOTE: The below solution is applicable to Windows 2008 R2 only.
It is possible to use the attached script:
removeupdates.cmd MM/DD/YYYY

Alternatively, you can follow the below procedure manually:
  1. Obtain the list of updates:
    wmic qfe get hotfixid,installedon | findstr MM/DD/YYYY >> c:\list.txt
  2. Open C:\list.txt in Notepad.
  3. Go to Edit > Replace and set the following field values:
    Find what: KB
    Replace with: Leave the line empty
  4. Go to Edit > Replace and set the following field values:
    Find what: MM/DD/YYYY
    Replace with: Leave the line empty
  5. Generate this uninstall script:
    for /f %i in ('type c:\list.txt') do echo wusa /uninstall /kb:%i /quiet /norestart >> c:\uninstall.cmd
  6. Run the resulting script.
  7. Reboot the node.
NOTE: Replace MM/DD/YYYY with the actual date of the updates' installation, e.g., 02/11/2012 or 10/23/2001.


6c20476fe6c3408461ce38cbcab6d03b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 965b49118115a610e93635d21c5694a8

Email subscription for changes to this article
Save as PDF