How To Create An SCCM Collection For Computers With A Specific Name

IT Support Forum Forums System Center Config Manager Software Distribution How To Create An SCCM Collection For Computers With A Specific Name

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #995
      Webmaster
      Keymaster

      If you need to create an SCCM collection that only contains computers with a specific name, feel free to amend this SQL query to suit:

      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_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Caption = “Microsoft Windows 7 Enterprise” and (SMS_G_System_COMPUTER_SYSTEM.Name like “PC%” or SMS_G_System_COMPUTER_SYSTEM.Name like “LTP%”)

      This query shows all computers that are Windows 7 Enterprise and have a name that starts with PC or LTP. To use the SQL query to create a collection of computers with a specific name, create a collection then add a new membership rule that is a SQL query.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.