Group Relevance

Hello all.

I’m having an issue is getting a group to work. I have a group for 2019 servers. I want to exclude 5 servers from this group. I have added this relevance statement but it is not working. Any advise would be appreciated.

(computer name as string does not start with “ST4703MFS1”) or
(computer name as string does not start with “ST4707MFS1”) or
(computer name as string does not start with “ST4708MFS1”) or
(computer name as string does not start with “ST6612MFS1”) or
(computer name as string does not start with “ST6628MFS1”)

You have to AND then instead of OR. Because a computername should not match any of them if you want to include in the group.

Thanks. I made that change and it worked.

1 Like

Are those the full server names or, as you put in the relevance, just the beginning of the name?

I ask because I have a short string of relevance that is easier to manage but I want to put in your system names instead of an example.

That is a full server name

Try this… easier and less of a string to parse, should be all on one line.

(("|" & computer name & "|") is not contained by "|ST4703MFS1|ST4707MFS1|ST4708MFS1|ST6612MFS1|ST6628MFS1|")

5 Likes

Along a similar approach

Q: (computer name as uppercase) is not contained by set of (("Computer1";"Computer2";"Computer3") as uppercase)
A: True
T: 0.387 ms
I: singular boolean
3 Likes

I agree with @SLB , Adding the case is important to ensure you do not miss some systems.