Windows 2008 R2 Task Scheduler Failure
Posted
by
Jonathan Parker
on Server Fault
See other posts from Server Fault
or by Jonathan Parker
Published on 2011-01-14T03:43:34Z
Indexed on
2011/01/14
3:55 UTC
Read the original article
Hit count: 360
windows-server-2008-r2
|task-scheduler
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?
© Server Fault or respective owner