/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Displaying SCCM 2012 collections and deployments linked to them

04/12/2016 3450 views

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   [ + ] Show comments

Comments


Answer Chosen by the Author

0

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

All Answers

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

Answered 04/23/2016 by: Badger
Red Belt

 
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