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 a lot of 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 in case you’re 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).

Patch My PC

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

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 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 clean up process for CM /SCCM /ConfigMgr 2012 – Software Update Content Cleanup in System Center 2012 Configuration Manager

1E Nomad

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

I would like to add one more reference in 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

Leave a Comment

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