Hi Guys,

Am a powershell beginner and I have a requirement to help clean up unused collections in our Site. Am trying to identify collections that have no deployment linked to them , does anyone know the required powershell commands to get this info?

So far I can list all deployments using cmdlets ( Get-CMDeployment) and all collections (Get-CMCollections ) really not helpful for my task. Any advice or information will be greatly appreciated!

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer Chosen by the Author



Some time ago, I wrote an HTA to automate adding my MSIs to SCCM 2007. At that time, trying to find decent, working examples of using the SMS/SCCM object model in VBS was a mission. Most were just fragments and some seemed to have been written simply by reference to Microsoft's documentation and never actually run/tested, as they failed in spectacular style.

You're more than welcome to PM me your email address and I'll send you the code. Bear in mind, though, that a) it's in VBS and b) it was written for 2007 and will thus reference SCCM advertisements and so on.

Answered 04/14/2016 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity



Its all magical PowerShell now..

This site may help you....


I have seen other sites with similar stuff to what you have asked.

Hope it helps

Answered 04/23/2016 by: Badger
Red Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja