Show Collection Details in ConfigMgr 2012 via PowerShell – Part 1: The Deployments

In my previous post I started with creating a new PowerShell form to show the Collection Membership of a device. Last week I decided that I wanted to do more with it, so I putted it into a new “project” and form. From now on it’s called Collection Details, as that’s what it’s going to show, starting this week with the targeted Deployments. The coming weeks there will be additional parts, to this post and this “project”, with more and more information to be added to the Collection Details.

So what can we all expect from the Collection Details? Well, we all know the Collection Properties per collection, the Collection Details will show a lot of those properties (and more) on a device level. In general it will mean that, on completion, it will show all deployments and settings targeted to a collection and relevant for the device.

Show Collection Details Form

ShowCollDeta05This script creates a nice form to show more Collection Details of the specified device. At this moment it shows all of the following information about the collections (of which the device is a member):

  • The Name of the Collections, of which the device is a member. 
  • The Name of the targeted Deployments.
  • The Type of the targeted Deployments.
  • (NEW!) The State of the targeted Deployments.

Note: When there is there is no targeted Deployment, or no Deployment State (like with Client Settings), then the field will show a star (*).

Usage

This script can be used, either ‘standalone’, or as a right-click option. The command line usage is like this PowerShell.exe -ExecutionPolicy ByPass .\ShowCollectionDetails_v0_5p.ps1 -ResourceId <ResourceId> -SiteCode <SiteCode> -SiteServer <SiteServer>. To see how to use this as a right-click option, have a look at my previous post.

Availability

As of today the first version of my Show Collection Details Form is publicly available via the TechNet Galleries. Please let me know what you think of the form.

Share

4 thoughts on “Show Collection Details in ConfigMgr 2012 via PowerShell – Part 1: The Deployments

  1. This is exactly what I have been searching for for the past few days. An easy way to find out what collections a device is a member of. Awesome work!

  2. beste,

    is het mogelijk om de collection membership naar een CSV-bestand te exporteren? ik wil dit script gebruiken bij het vervangen van computers

    met vriendelijke groeten,

Leave a Comment