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: Logo

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

Facebook photo

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

Connecting to %s

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