Share via

create collections by computer name

Rafael Aguilar 496 Reputation points
Oct 13, 2020, 9:58 PM

Hi,Team.

I need to create several collections because of the computer nomenclature.

In this example many computers start with "ari" and another one with the word "ari" in the middle. For example aguari003.

I know that I can group all the teams that start but I don't know how to group the teams that have the combination in the middle.

If someone could guide me I would hate some idea.

Thanks.

32201-image.png

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 49,131 Reputation points Microsoft External Staff
    Oct 14, 2020, 1:37 AM

    @Rafael Aguilar
    Thank you for posting in Microsoft Q&A forum.
    If we need have the word "ari" in the middle but not start with "ari", we may use the query:

    Select * from SMS_R_System where Name like "%ARI%" and Name not like "ARI%"  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rafael Aguilar 496 Reputation points
    Oct 14, 2020, 11:59 AM

    Thank you for responding, excellent.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.