SCCM 2012 R2 – Collection Per Computer

Hi All,

have you ever tried to discover the collections a specific device is member of while selecting the device on the devices node? it is not easy is it? we normally create a query to do it.

based on this, i’ve created a powershell script as well as a console extension that will allow you to see all collections a device is member of with 1 click.

To do it, download the CollectionPerComputer zip file, extract and add the files to the following places:

RFL-Devices.xml to <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\ed9dee86-eadd-4ac8-82a1-7234a4646e62 and <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\3fd01cd1-9e01-461e-92cd-94866b8d1f39 and <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\2b646eff-442b-410e-adf3-d4ec699e0ab4 and <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\64db983c-10bc-4b47-8f2d-cfff48f34faf (change the CM12R2Console to the path of the console :) )

CollectionPerComputer.ps1 to C:\Scripts\CM12R2Console on the same computer where you installed the CM12 R2 Console

Once you have done it, restart the console and you’ll see a new action group called RFL Systems and once you right click any device, you’ll also be able to see the action (see below screenshot)
listallcollections1

when you click, a powershell screen will be shown and the baseline will be created
listallcollections2

email

Written by , Posted .
  • Le Follotec Franck

    thanks again

  • Alexander Crino

    Perhaps using Out-Gridview would be a little more friendly? It also provides some handy filter/search options without doing anymore Powershell.

  • albu68

    Thank you for this script, it’s convenient! :)