But it seems that if the task exited with an error code, this overwrites the “not enabled” flag? is that possible?
Here you see the Task is going critical, even it is not enabled.
Or is there maybe even a possibility to disable all services where the task is not enabled? (I Imagine that is not possible because of the value comes from the long output… ?)
The Windows task check is completely broken as it uses the “schtasks” shell tool and this tool is language dependent. What is a real pain.
If your output is correctly interpreted and formatted then the check itself will not create tasks that are disabled.
The problem is that the check expects exactly the string “Disabled” for such ignored tasks.
From the check if v.get("Scheduled Task State") != "Disabled"]
I made a first proof of concept Windows plugin and check that is using the “Get-ScheduledTask” command from Powershell.
The states are numerical output and also on German Windows you get correct English states.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.