How to clean WSUS

Duchemin, Dominique 2,006 Reputation points
2023-08-28T23:56:46.1433333+00:00

Hello,

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

https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/update-management/wsus-maintenance-guide

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.

Thanks,
DOm

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

2 answers

Sort by: Most helpful
  1. Wesley Li-MSFT 4,536 Reputation points Microsoft External Staff
    2023-08-29T02:36:07.36+00:00

    Hello

    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.

    https://learn.microsoft.com/en-us/windows-server/administration/windows-server-update-services/manage/the-server-cleanup-wizard

    0 comments No comments

  2. Adam J. Marshall 9,946 Reputation points MVP
    2023-08-29T16:59:02.2133333+00:00

    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

    https://www.ajtek.ca/wsus/how-to-setup-manage-and-maintain-wsus-part-8-wsus-server-maintenance/

    WSUS Automated Maintenance (Our Product), fellow MVP Bryan Dam's DGA script (https://damgoodadmin.com/2017/11/05/fully-automate-software-update-maintenance-in-cm/) - 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.