We have a script that is a security script, checking logs. Almost always it can be ignored and, for the most part, is; it sends out an email when it sees an issue in some logs of a particular type, which shouldn't happen too often.
We kick off this script (PowerShell) via Windows Task Scheduler on a Windows Server. The account used is a team service account, and so it's used for other things. Unfortunately if the password on this account is changed and the changer forgets to update the Windows Task Scheduler task, the task fails to run. Since the task is designed to only contact users when something is wrong, it's easy to not know the task has been failing for months at a time.
Is there some way to be notified when a task has a critical failure like this?