I’ve been playing with collections on Configuration Manager 2012 R2. My current set up see’s a primary site in a Datacentre, within its own domain and I intend to manage another 17 domains using this with distributed site systems to help with bandwidth and because of this, sorting out my collections is pretty important.
I’ll set up my user collections. If you open up the ConfigMgr Console and navigate to Assets and Compliance / Overview / User Collections you should see a default collection for All Users. For now this is the one I’m interested in. So double click on it to open the node.
I’ll select single user, right click and look at his/her properties..
We can see that from this window we are looking at the User Resource resource class and the properties are listed below. Now you’re faced with selecting a property that can uniquely identify your needs. It may be that you want a collection of everyone in a specific OU, or perhaps everyone with a certain name or within a certain domain. In my example I wish to create a collection for everyone within a certain OU as I have neatly separated my users into OU’s so this is how I wish to continue. I am interested therefore in the Distinguished Name property of the User Resource class. Let’s go ahead and create our collection.
In the ConfigMgr Console, navigate to Assets and Compliance / Overview / User Collections and right click on User Collections selecting Create User Collection.
The Create User Collection Wizard will start..
Give the collection a Name and under Limiting collection click Browse… and choose the All Users collection..
The Query Rule Properties wizard will open, now give your query a name and click on Edit Query Statement…
The Query Statement Properties wizard will open, from the windows click on the Criteria tab and then the ‘yellow sun’ as I call it which represents a new criteria.
Click on Select… from the Criterion Properties windows and you’ll see the Select Attribute Window. Now remember the class I selected earlier? The User Resource Class? well, now I need to select it and also the attribute of Distinguished Name like so.
When you click on OK you will return to the Criterion Properties box where you must select your operator and a value. The operator is the comparison object, which mean you are telling the query to examine the property and then compare it with something, the comparisons are self-explanatory really; is like, is equal to, is not equal to, is greater than to name but a few. In my scenario I’m going to select the is like comparison and use a wildcard on the OU’s I have set up. The wildcard character is % so my query might be %OU=Staff%, for example.
Click OK three times to return to the Create User Collection Wizard windows where we will hit Next > twice and finally Close to create the collection.
I had repeat this for 16 different OU’s which is why on my first pictures above there’s a few collections blanked out.