I accidentally blew up my dev lab and now I need to build a new one but luckily we have PowerShell :).

In this picture we have 8 Queries and I would like to create Device Collections based on these Queries. These Queries are built with Servicing Extension.


Here are some of the commands that we can use in Configuration Manager 2012 R2 CU4. These commands allows us easily export/import Queries from one system to another and much more.

Little bit later we have nice Device Collections in System folder


Using the PowerShell GridView output we can easily explore the Collection membership count



PS – My next Configuration Manager 2012 R2 Automation with PowerShell is in June @LabCenter


Happy Scripting