How to create a Config Manager 2012 collection query with multiple values

I had to create a query based on chassis type so that I could create a collection of all of our desktops and laptops.

I used this site to get the chassis type numbers, http://technet.microsoft.com/en-us/library/ee156537.aspx and then fired up the config manager console to create the query…

Here’s how I created the desktop collection using the wizard:

1.  Fire up the Create Device Collection Wizard and complete the relevant fields:

1

2.   Select Add Rule and choose Query Rule:

2

3.  Give the rule a meaningful name, then click the Edit Query Statement button:

3

4.  In the Query Statement Properties box, change to the Criteria tab and click the button to create a new query:

4

5.  Change the Criterion Type from Simple Value to List of Values:

5

6.  Click the Select button:

6

7.  Change the Attribute class to System Enclosure, and the Attribute to Chassis Types then click OK:

7

8.  Ensure the operator value reads is in then in the Value to Add text box enter your first value then click the Add button.  The value you added will appear in the Values to match list box on the right.  Keep repeating this until you have added all of your values then click the OK button.

8

9.  The results of your query:

9

10.  Click OK then the Next buttons until the Wizard is complete.  Job done.

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*