Windows 2008 R2 Task Scheduler Failure
- by Jonathan Parker
I have an application (.exe) which I am running via a scheduled task on Windows Server 2008 R2.
The task runs fine but when the .exe returns a non-zero exit code the task is still successful when it should fail.
I get this message:
Task Scheduler successfully completed
task "\CustomerDataSourceETL - Whics"
, instance
"{a574f6b4-2614-413c-8661-bc35eaeba7cd}"
, action
"E:\applications\CCDB-ETL\CustomerDataSourceETLConsole.exe" with return code 214794259.
How can I get task scheduler to detect that the return code is 0 and fail the task?