I’m trying to filter the relevance by computer name but it doesn’t work.
This is my relevance:
((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor")
I tried to Add:
AND bes computers whose (name of it as string starts with "101p1-")
AND (name of BES Computer as string starts with "101p1-")
AND (computer name contained "101p1-")
AND (it as lowercase contains “101p1-” or it as lowercase contains “101p1-”) of value of variable “COMPUTERNAME” of environment
Any of this Works, also I tried start with "101p1-), I try to use regex with no success.
((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND (computer name as lowercase contains "101p1-")
(not really adding anything productive but it seems like you’re trying to target all windows server version and it would be easier to do just like name of it starts with "Win20" of operating system rather than three lines of every version explicitly from the last 15 years imo)
@JasonWalker, I just have access to GUI, I’m editing the task, in Relevance tab. @Sophia , no, I filtered by OS (It is working well), if a Service installed (working well) and now I need to filter by Computer Name that start with “101p1-”.
((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND ((name of it starts with "101p1-") of Computer name)
((name of it starts with "101p1-") of Computer name)
Computer Name is a property, and you appear to want values that start “101p1-”, but what you are looking for is a property called “Computer Name” whose name of it starts “101p1-”
Many, Many thanks I add it and it works as spected.
The final Relevance filter looks like this:
((name of it = "Win2008" AND NOT x64 of it) OR (name of it = "Win2008" AND x64 of it) OR (name of it = "Win2008R2") OR (name of it = "Win2012") OR (name of it = "Win2012R2") OR (name of it = "Win2016") OR (name of it = "Win2019") OR (name of it = "Win2022")) of operating system AND (not exists service "TSM Client Acceptor") AND (computer name starts with "101p1-")