How to clean WSUS

Duchemin, Dominique 1,866 Reputation points


I am trying to cleanup WSUS as the database is over 300 GB now.

I did all the tasks in the Maintenance guide but it is really inefficient... removing a small amount of items versus what is added...

Any more efficient tools to cleanup WSUS and make the DB manageable.


Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,622 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wesley Li-MSFT 3,336 Reputation points Microsoft Vendor


    I understand that you have already followed the WSUS maintenance guide and are still facing issues with the size of the WSUS database. One option you could try is to use the Server Cleanup Wizard which is integrated into the user interface to help you manage your disk space. The Server Cleanup Wizard can perform several operations such as removing unused updates and update revisions, deleting all client computers that haven’t contacted the server in 30 days or longer, deleting all update files that aren’t needed by updates or by downstream servers, and declining all updates that are expired by Microsoft.

    It’s important to note that if you are using WSUS along with downstream servers, WSUS servers should be removed from the bottom up. Incorrectly running cleanup on any upstream server prior to running cleanup on every downstream server can cause a mismatch between the data that’s present in upstream databases and downstream databases. The data mismatch can lead to synchronization failures between the upstream and downstream servers.

    If you have already tried using the Server Cleanup Wizard and are still facing issues, you could consider automating backup of WSUS database along with reindexing of the WSUS database on a schedule.

    0 comments No comments

  2. Adam J. Marshall 6,911 Reputation points MVP

    As you no doubt have noticed, the SCW is very limited in scope (although it does have its positive points). Part 8 of my guide goes over this

    WSUS Automated Maintenance (Our Product), fellow MVP Bryan Dam's DGA script ( - free but you have to do all the setup and upkeep, and figuring out if this is all you need or not (hint, it's not). There are also other free scripts are available in the community if you search for them.

    There are pluses and minuses of each of the options that you will find. Choose the right one for you and your company.

    0 comments No comments