Create an SCCM Query for a Collection of machines with name like or starts with

Problem:

How do I create an SCCM collection to show all machine with a name that starts with some particular characters

Solution:

Use the below query, changing MyComputer to the string you want to use

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 '%MyComputer%' order by SMS_R_System.Name

Leave a Reply

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