How does Windows Task Scheduler in Win7 recognize a failed task?

后端 未结 4 812
猫巷女王i
猫巷女王i 2020-12-14 16:31

I am working with Windows 7 and I have an application that returns zero (0x0) when successful and one (0x1) on error situations.

I have scheduled this app using Win

4条回答
  •  囚心锁ツ
    2020-12-14 17:00

    You can,

    1. activate history for Schedule (if not already)
    2. on a History "Action completed" right click "Attached Task to This Event..."
    3. Set a custom filter like this:

      *[System[(EventID=201)]] and *[EventData[Data[@Name='ResultCode']='1']]

    Enjoy

    Tilo

    used on Win 2008 R2 (Exchange as email server)

提交回复
热议问题