Using filter to filter out multiple Services


#1

Hello,

I’m trying to figure out how to filter out a couple of Windows Server 2016 service in our TS/Citrix env.

More or less I need to combine Filter with Exclude, but i can only get the filter=name to work with one service name:

“check_service” -a “filter=name not like ‘CDPU’”

However, this do not give an error, but seems to ignore the filter argument completly: “check_service” -a “filter=name not like ‘CDPU’ or name not like ‘OneSync_’”

Hope someone can help we :slight_smile:


#2

exclude options are handled before filtering (and thus faster) so why not simply use the exclude option for excluding services and filter for whatever else you need to filter?