Displaying SCCM 2012 collections and deployments linked to them
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!
Answers (2)
Its all magical PowerShell now..
This site may help you....
http://www.get-configmgr-content.co.uk/blog.html
I have seen other sites with similar stuff to what you have asked.
Hope it helps
Top Answer
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.
Comments:
-
Thank you VBScab! - JamesAsh 8 years ago