Device collections in System Center 2012 Configuration Manager represent a logical container for a grouping of devices. These collections can then be used to perform a number of tasks, such as deploying software, compliance settings or task sequences. I've outlined 4 of the most common collection types below.
Device Collection based on OU
1. Browse to Assets and Compliance, right click on Device Collections and select "Create Device Collection".
2. Give the collection a meaningful name, and set the limiting collection.
3. Add a Query Rule.
4. Edit Query Statement.
5. Head to the criteria tab, and click on the new star item.
6. Click on Select, and set the attribute class to System Resource and attritube to System OU Name.
7. Operator should be set to is equal to, click on values to choose the desired OU. It should read Domain/OU/ChildOU.
8. Next, Next through the rest of the wizard.
9. The device collection has now been created.
Query Language
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName = "THESYSADMINS.LOCAL/LONDON/LAPTOPS"
Device Collection based on an Active Directory Security Group
1. Follow steps 1-5 from the first example.
2. Click on Select, and set the attribute class to System Resource and attritube to Security Group Name.
3. Click on value and choose from one of the populated entries, or manually enter the security group name.
4. Next, Next through the rest of the wizard.
5. The device collection has now been created.
Query Language
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SecurityGroupName = "THESYSADMINS\\London Security Group"
Device Collection based on machines with x software installed
1. Follow steps 1-5 from the first example.
2. Click on Select, and set the attribute class to Installed Appliactions and attritube to Display Name.
3. In this example, I've set the operator to "is like" and %java%. This will return any device with Java in the title of add/remove programs.
4. Next, Next through the rest of the wizard.
5. The device collection has now been created.
Query language:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Java%"
Device Collection with Manual Direct Rules
1. Following steps 1-2 from the first example
2. Add a Direct Rule.
3. Enter a value of the device you wish to add. The device must already be in SCCM, you can confirm this by searching for the device under "Devices".
4. If the device is found you will be able to select it on the next page.
5. Next, Next through the rest of the wizard.
6. The device collection has now been created.
You can also manually add devices by right clicking on the collection and selecting Add Resources.
Type in a device name at the top, click search, then select the device in the search results pane and click add and OK.
The post SCCM 2012 – Creating Device Collections appeared first on The Sysadmins.