Jump to content


SanjuNana

Cleaning up old content / removing from distribution points

Recommended Posts

I need to clean up some old/outdated content and had a few questions on best practices.

 

Right now I'm working on Software Updates and their Deployment Packages. Our normal monthly procedure creates a Software Update Group with required updates, as well as a Deployment Package. So for 2015, we have 12 Software Update Groups and 12 associated Deployment Packages. I'm currently rolling all of the 2015 updates into one Group and one Deployment Package, and need to remove not only all of the Deployment Packages, but I want to make sure that it also removes the content from the associated Distribution Points.

 

What's the best practice way to do this? If I just delete the deployment packages from the console, will it remove the content? (I doubt it, since you can go into the Properties of the deployment packages and remove the content from the 'Content Locations' tab. But of course you can only remove them one at a time in the GUI and that would take WAY too long for 12 Deployment Packages that are on 13 distribution points.)

 

the Remove-CMContentDistribution or Remove-CMSoftwareUpdateDeploymentPackage cmdlets seem promising, but we don't have a test environment, and I'm not yet a Powershell guru, so I want to make sure that I know what I'm doing before just trying them out in prod.

 

Can anyone provide me with some -Examples of their proper usage (or a better powershell way to clean up outdated content from DPs)?

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.