How to create a Config Manager 2012 collection to include only active or inactive computers

I couldn’t find anywhere on the Internet that showed how to do this, so here’s how I created a collection of all of our ‘Active’  computers:

1.

Under Assets and Compliance -> Device Collections, create a new device collection.

1

2.

On the ‘General’ tab, fill in the name of the collection, a comment if you are feeling funky and set the limiting collection that you want this query to be, well, limited to.  In this example,  I limited the query to the ‘All Systems’ collection.

2

3.

On the membership rules I chose to use incremental updates so that I had a more accurate collection.  The best practice is to limit your use of incremental updates but it can be implemented on something like 200 collections.  See this link here for more details on best practices for collections: http://technet.microsoft.com/en-us/library/gg699372.aspx

Click the ‘Add Rule’ button and select ‘Query Rule’ from the drop-down menu.

3

4.

Give the query rule a meaningful name and then click on the ‘Edit Query Statement’ button.

4

5.

Select the ‘Criteria’ tab and click on the little goldy-yellowy-starry sun type button.

5

6.

On the ‘Criterion Properties’ box, leave the criterion type as ‘Simple Value’ and click the ‘Select’ button.

6

7.

On the ‘Select Attribute’ box, select ‘Client Status’ for the Attribute class and then select, ‘Client Activity’ for the Attribute.

7

8.

On the ‘Criterion Properties’ box, ensure that the ‘Operator’ is set to: ‘is equal to’ and the value is set to: 1

Note:  If you wish to query inactive computers, change the value to: 0

8

9.

Click the OK buttons (three times) and you will be back at the ”Create Device Collection Wizard’ box with your newly created query proudly on display.

9

10.

Click the Next button, then click Next again at the Summary screen and you should get a nice successful outcome.

10

11.

Click the close button and you’re done!

Be the first to comment

Leave a Reply