How to set up alert on failed Windows task

I am looking to set up a test of failed windows task schedule operational. This would alert us when a task has failed so the issue can be corrected. I am not having any success so hoping someone can point me in the right direction.

Computer Management
System Tools
Event Viewer
Application and Services Logs
Task Scheduler

Thank you

  • There's definitely other threads on this with more info.
    There's an out-of-the-box monitor for windows tasks, it only cares about the top level folder, and will only trigger based on if the task gives a sign it failed. Which is down to the author and very much not universal.
    There's some powershell equivalents for additional info, which can be unpleasant to deal with for security