Create Dynamic Collections in SCCM for Different Attribute Classes | ConfigMgr

A dynamic collection in Configuration Manager is based on WMI Query Language ( WQL ) queries. The membership of these collections updated dynamically based on the rules provided in WQL query. We can have one or multiple query rules in a collection.

Dynamic collections are useful for deployments as it save efforts to add the device manually in collection. The devices are automatically include or exclude from collection based on query rules.

In this blog post, we will provide step by step guide to create a dynamic collection. We will also discuss about Attribute Classes (SMS Provider WMI Class) and Attribute Names which can be used to create query based collections to achieve different requirements. For example, create a collection for the device build in last n number of days or create a collection for specific hardware model.

For this demonstration, we will create a collection for all devices in a Active Directory Organizational Unit ( OU ).

How to Create a Dynamic / Query Based Collection

In Configuration Manager console, go to Asset and Compliance , right click on Device collections and select Create Device Collection

SCCM Collection

In the General page, provide a collection Name and then click on Browse button under Limiting collection. Select the collection on which you want to limit the membership of your new collection.

Notes: A limiting collection restrict the membership to that particular collection. Your query based collection will be a subset of limiting collection.

SCCM Collection query wizard

In the Membership Rules page, click on Add Rule and select Query Rule from drop down list.

SCCM Collection query wizard

In the Query Rule Properties dialog box, enter a name for query rule and then click on Edit Query Statement.

SCCM Collection query wizard | Dynamic Collections

In the Query Statement Properties dialog box, select Criteria tab and click on Add (Yellow Start) to add a new query rule.

SCCM Collection query wizard

In the Criterion Properties dialog box, select the following.

Criterion Type: Simple value

Where : Click on Select…

SCCM Collection query wizard

In the Select Attribute dialog box, select the following

Attribute class: System Resource

Attribute: System OU Name

Click on Ok to return to previous dialog box.

SCCM Collection query wizard

Back to Criterion Properties dialog box, select the following

Operator: is like

Value: Click on Value…

SCCM Collection query wizard

In the Values dialog box, you will see the list of all Active Directory OU which have been discovered as part of Active directory system discovery.

Select the desired OU and click on Ok to return to previous window.

SCCM Collection query wizard

Back on the Criterion Properties dialog box, verify the query rule and click on Ok.

SCCM Collection query wizard

You are now back to Query Statement Properties dialog box. Click on Ok to close the dialog box.

SCCM Collection query wizard

In the Query Rule Properties dialog box, click on Ok to return to Create Device Collection Wizard.

SCCM Collection query wizard

In the Membership Rules page, select Use incremental updates for this collection if you want to enable incremental updates.

Click on Next

SCCM Collection query wizard

In the Summary page, review the details and click on Next. The collection will now created and you will see a Progress and Completion page.

SCCM Collection query wizard

Different Attribute Classes and Attribute Names for Dynamic Collections

While creating the device collection in above demonstration, we have used below class and attribute to populate collection membership based on Active directory OU name.

Attribute class: System Resource

Attribute Name: System OU Name

SCCM Collection query wizard

Similarly, there are many SMS Provider WMI Server classes ( Attribute Classes) which can be used to create a device collection based on different criteria.

Other posts in this series

The below blog posts cover the details of classes which are mostly used for creating dynamic collection or SCCM queries. The process to create dynamic collection will be same as described above. You can simply select appropriate Attribute class and Attribute name as per your requirements. The posts also includes the complete queries which you can copy and paste to query editor to quickly create the collection.

Related Posts:

Subscribe to Techuisitive Newsletter

Be the first to know about our new blog posts. Get our newsletters directly in your inbox and stay up to date about Modern Desktop Management technologies & news.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top