计划任务给出最后一次运行结果0x80041324


9

我已经在我的Windows 7机器中设置了一个计划任务,这个任务是为了在我不在时运行BAT文件,即机器闲置15分钟。

有谁知道如何追查错误代码的原因?

检查MSDN,它说......

SCHED_E_TASK_ATTEMPTED
0x80041324
Task Scheduler服务尝试运行任务,但由于任务定义中的某个约束,任务未运行。

而且为了让我更加困惑,我刚刚注意到它已经运行了,而我在机器上的最后结果(0x0)

Answers:


15

如果你查看你的任务属性,就有了 Conditions 标签。任何这些条件都可以阻止任务。例如,如果你有 Start the Task only if running on AC Power 和 Stop task if the computer switches to battery power,并且您拔掉了笔记本电脑,这会导致退出状况。

同样如此 Start only if only has been idle for ... 和 Stop if no longer idle。

这只是该选项卡上任何可能导致其无法运行或过早停止运行的示例。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.