SCCM Content Housekeeping
Hi Team, I am looking for a PowerShell script to cleanup SCCM Content from Distribution Point as Well as DP Groups.
Using Remove-CMContentDistribution I am able to clean from DP’s however not able to clean from DP Groups.
Below is the commandline from the script I have used:
Remove-CMContentDistribution -DistributionPointName $DP -ApplicationName $AppList.LocalizedDisplayName -Force
Is there a command line/script that can be used specifically to identify the targeted DP’s and DP Group’s for a list of applications and then remove them automatically.