SCCM 2012 R2 – Remove old Hotfix packages – Quickpost

Hi Reader, here is martin 🙂
have you installed the new Service Pack for your infrastructure?
Was you lazy as me when you have installed the Hotfixes for R2, you did not delete the old ones?
Now you have more than 10 Packages in you Config Manager Hotfix Folder?
You don’t want to delete them manually thorugh the console?
Just use this small PoSh command to remove all Hotfix Packages (mind to delete the Folder on your CM Installation):

Get-CMPackage | where{$_.pkgsourcepath -like "*SMS_S01\hotfix*"} | Remove-CMPackage

remove package

Hope this helps, Martin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s