Windows Scheduled Task Analysis

I am looking for help with getting a report/analysis on a specific Windows Scheduled Task that we have deployed to a group. I have played with the logical statements some but have had no luck with getting it to report a simple True or False if the task is present.

I was working with this as my base:

exists scheduled task whose (name of it contains “Speed of Service” and enabled of it)

This returns a False on locations that I manually validate with a working service. Any help with the language is appreciated.

In this scenario, I would incorporate casting to lowercase:

exists scheduled task whose (name of it as lowercase contains "Speed of Service" as lowercase and enabled of it)

Edit - Sorry @Jorndorff - there was a typo which I fixed.

In my environment, it works for the enabled scheduled task “Adobe Acrobat Update Task”

1 Like

Thank you for the response. This query is coming back as “undefined”…

Thank you again, I am running the change now.

Update- The script is returning the correct data on the pull. Thank you again for your assistance.