SCCM 2012 R2 – Remove Expired Updates

SCCM 2012 R2 – Remove Expired Updates

Hi All,

every time i need to remove an expired update from a baseline is always the same…select the baseline, show members, select the updates i want to remoe…edit membership…

This action takes time, imagine that you need to do it once a month (yes, patch Tuesday). but if you have many sw update groups?!?!? yes, you’ll spend bit of time doing it.
expired1

based on this, i’ve created a powershell script as well as a console extension that will allow you to remove all expired updates from a sw update group.

To do it, download the RemoveExpiredUpdates zip file, extract and add the files to the following places:

RFL-SUP Deployment Group.xml to <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\2853886b-cce5-4ed4-af43-df69efb2e7d8 and <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\bb1a22d4-816f-438c-b6e7-51cbc210112f (change the CM12R2Console to the path of the console :))

RemoveExpiredUpdates.ps1 to C:\Scripts\CM12R2Console on the same computer where you installed the CM12 R2 Console

Note: the RFL-SUP Deployment Group.xm has the same name as the a href=”http://thedesktopteam.com/blog/raphael/sccm-2012-r2-sw-update-group-to-baseline/” target=”_blank”>SW Update Group to Baseline and can easily be replaced as it contains both actions. if you have not downloaded the SW Update Group to baseline, i suggest you to do it now 🙂

Once you have done it, restart the console and you’ll see a new action group called RFL Systems and once you right click any software update group, you’ll also be able to see the action (see below screenshot)
expired2

when you click, a powershell screen will be shown and the baseline will be created
expired3

And no worries, if there is nothing to remove, it will not do anything

About

Raphael is a 9 times Microsoft MVP with over 20 years of experience in IT, in which 13 years have been dedicated to System Center and Automation. His extended experience has been developed through several IT roles, from first-line support to principal consultant, towards a wide range of clients and sectors. One of the four MVPs in Enterprise Client Management in the UK, Raphael holds more than 30 Microsoft certifications and is an MCT (Microsoft Certified Trainer). Since 2008, Raphael has been providing Microsoft trainings from basic to advanced levels in several categories. Throughout his career, Raphael has joined as speaker in well-known events such as TechEd and Gartner Security Risk Management. He also organised community events and lectured around the world, sharing best practices and knowledge within the industry. Bilingual in English and Portuguese, Raphael has authored diverse articles published in Microsoft's TechEd, served as the editor-in-chief of a magazine focused on System Center in Brazil and wrote two books: "Understanding System Center 2012 SP1 Configuration Manager: The walkthrough book" and "System Center 2012 R2 Configuration Manager: Automation from Zero to Hero".

Tagged with: , , , , ,