SCCM 2012 SP1 – Now cleaning up Update Packages & Folders

This just made my day – i simply could not wait to get this out in a blogpost!

Those of you that spend time managing Sofware Updates via ConfigMgr will be happy to know that Microsoft went ahead and made a maintenence task/routine for cleaning up packages and folders with expired updates.

Previously you would have to run some executable script that would go in and do the cleanup for you, and could at times give you some trouble – well its a custom made script made by someone, so who knows what might happen.

Plus it would require you to actually go and do something manually – and we humans are built in a manner that we do sometimes forget things. No more!

Look at this:

sync: SMS performing cleanup
Removed 89 unreferenced updates
Done synchronizing SMS with WSUS Server sccmserver.domain.local
Set content version of update source {…..} for site PS1 to 191
Sync succeeded. Setting sync alert to canceled state on site PS1
Updated 195 items in SMS database, new update source content version is 191
Sync time: 0d00h10m08s
Deleting old expired updates…
Deleted 2 expired updates
Deleted 35 expired updates
Deleted 35 expired updates total
Deleted 205 orphaned content folders in package PS10000D (2012-2)
Deleted 2076 orphaned content folders in package PS10000E (EndpointProtection)

That is pretty Nice!

Comments (6):

  1. Erik Curtis says:


    I have SCCM 2102 SP1 and my expireg updaet are not deleting. Is this an option in SCCM that I need to enable?

  2. Henrik Hoe Henrik Hoe says:

    Well you can always look in wsyncmgr.log file and check the progress of cleaning up.

    But im pretty sure that expired updates wont disappear all together right away from the console view. The auto cleanup will delete the files in the WSUS folders but the update meta data will probably remain for some time until microsoft does something to their Windows Update database.

    You will offcourse need to right click your expired updates and remove them from the update group memberships.

    but check the log file – thats where you will see what happens.

  3. […] на эту тему и наткнулся на интересную заметку Henrik Hoe — SCCM 2012 SP1 – Now cleaning up Update Packages & Folders автор которой констатирует факт того, что уже начиная […]

  4. Aleksey says:

    Henrik, Thanks for sharing info ;)

  5. Mike says:

    I am new to SCCM 2012, and am trying to configure windows updates. I created an ADR for Windows 2008 Servers, but failed to limit the updates to only the newer updates. Now I have the WSUS folder holding the Deployment Packages with much more data than I need. I changed the ADRs have the Date Released or Revised to be “Last 1 Year”. In All Software Updates I filtered on all of the old updates, Edited the memberships,and removed them from all of the update groups. Is there something I need to do to have them disappear from the WSUS folder because I made these changes yesterday, and am still seeing them in the WSUS folder, and in All Software Updates.


  6. Very useful! keep update thanks for sharing it.

Leave a Reply