How to correctly cleanup WSUS server

      No Comments on How to correctly cleanup WSUS server

Problem

A typical WSUS server is getting more and more updates over time and disk space needed for those updates is growing. Unfortunately the integrated Cleanup Wizard does only half of the work needed, to really cleanup the WSUS server from unnecessary updates.

Solution

Decline superseded updates

  1. Open WSUS admin console and go to “All Updates”.
  2. Change “Approval” to “Any Except Declined” and “Status” to “Any” and click on “Refresh”.
  3. Right-click on the table header and select “Supersedence” to be displayed.
  4. Sort the list of updates for the “Supersedence” status.
  5. Mark all updates with the icon the following two icons and decline them.
    and
  6. Now you can run the “Server Cleanup Wizard” under “Options”.

Alternate to Server Cleanup Wizard

Starting from Windows Server 2012 R2 you can also cleanup the WSUS server using PowerShell.

Get-WsusServer | Invoke-WsusServerCleanup -CleanupObsoleteComputers -CleanupObsoleteUpdates -CleanupUnneededContentFiles -CompressUpdates -DeclineExpiredUpdates -DeclineSupersededUpdates

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.