I am using the Windows Task Scheduler to run a executable that returns 0 when it runs successfully. However, I would like an email notification if (1)the task fails to run or (2)the return code if anything other than 0.
Is this something the Windows Task Scheduler on Windows Server 2003 can do???
Best Answer
In my quest to eradicate cmd.exe [grin], here's a Powershell script that should also work for you: