I am trying to write a discovery filter script for Windows services that start with a common name and are set to auto startup. I have experimented with different things all day with no luck.
Here is what I thought would work, but it does not
I was hoping $1 would return a row but seems it does not.
In the manual it says values are returned with ~~~ between them, but I am not sure how to read those in the script.
Any assistance would be appreciated.
Gary
Here is what I thought would work, but it does not
Code Select
name = $1->get(0);
startup = $1->get(4);
if (name like "3CX*" && startup == "Auto")
{
return true;
}
return false;
I was hoping $1 would return a row but seems it does not.
In the manual it says values are returned with ~~~ between them, but I am not sure how to read those in the script.
Any assistance would be appreciated.
Gary