How to SCCM Delete Expired Updates from WSUS using Script ConfigMgr Endpoint Manager

How to SCCM Delete Expired Updates from WSUS using Script ConfigMgr Endpoint Manager. I’ve seen many people like me searching around for better solutions to delete expired ( software ) updates from software update packages and DPs.

This action can save a lot of disk space if you’ve been using SCCM / ConfigMgr 2007 since its early days.

Update on 18th Jan 2018 –How To Setup WSUS Cleanup Task From SCCM Console Configuration Manager ConfigMgr MEMCM HTMD Blog (anoopcnair.com).

 Here is an excellent script to delete the expired updates shared by Raphael.

Patch My PC

SCCM Delete Expired Updates from WSUS

SCCM Delete Expired Updates from WSUS
SCCM Delete Expired Updates from WSUS

Update – I think the above script is not available. You can get a more useful script from the following Link – Script to Clean Up Software Update Objects.

Jump into the following post if you want to know more about the cleanup process for CM /SCCM /ConfigMgr 2012 – Software Update Content Cleanup in System Center 2012 Configuration Manager.

Update 16-OCT-2012: Here is another Script to Clean expired updates from update lists, packages, and deployments – Minfang Lu.

I want to add one more reference to this post. How to maintain your WSUS DB?

Also, some important points about clean-up and re-index of WSUS DB.

These activities should be scheduled quarterly or half-yearly so that you can avoid sync issues explained in the below blog post.

Full Post –  Clean the WSUS and maintain WSUS.

Author

Anoop is Microsoft MVP! He is a Solution Architect in enterprise client management with more than 20 years of experience (calculation done in 2021) in IT. He is a blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. E writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc…

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.