Ever have the need to create a device collection in SCCM that automatically updates it’s membership on a regular basis based on something as simple as what the computer name of a system is?
Use the query below for creating this type of Dynamic Computer Collection based on a string inside the computer name.
Example: If your computers contain SQL string in computer name:
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_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.Name like “%SQL%” order by SMS_R_System.Name
That’s it, you’re done!
– Lots of potential for creating many different device collection based on system naming conventions you may be using at your end.