/build/static/layout/Breadcrumb_cap_w.png

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!



0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: Badger 7 years ago
Red Belt
0

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

Posted by: anonymous_9363 7 years ago
Red Belt
0

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 7 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ