2

On a Windows Server 2012 R2 server, I have created a scheduled task with a trigger defined as daily, repeat every five minutes. (I have multiple other tasks configured like this that I have no problem with).

The task itself works perfectly; if I manually run the task (from within task scheduler, i.e. right-click, run), it works with no problem and does what I want it to do. And gives last run result of 0x0. What's not working is the trigger. It just doesn't run.

To clarify, I'm not saying it runs and doesn't work, nor does it give an error or reason why it's not running. Just, nothing happens. I've checked the Apps and Services event logs under Microsoft/Windows/Task Scheduler/Operational. I can see a number of eventID 107 logs, but none for this task. In task scheduler, there is nothing in the history tab except for where I've run it manually.

The task is set to run as SYSTEM (whether user logged in or not is set by default when you set it to SYSTEM and grayed out). Under the Conditions tab, I have nothing ticked. Under settings, the following are ticked:

  • Allow task to be run on demand
  • Stop the task if it runs longer than: [3 days]
  • If the task does not end when requested, force it to stop.

The option for "If the task is already running, then the following rule applies:" is set to "Do not start a new instance", but I've already tried ending all running instances of the task.

Any other suggestions?

  • 1
    Export the task and a similar one that works as xml and compare the files with a diff tool. Maybe you can spot something that way. – Peter Hahndorf Jul 7 '15 at 6:23
  • Good suggestion, I'll give that a go – Matt Jul 7 '15 at 6:29
  • Ok so there are two main differences between this and other tasks that do work. One is that very few are set to run as SYSTEM, and none that run every five minutes are. The other is that most tasks that run on a schedule like this (albeit with a named user account) are set to run with highest privileges. – Matt Jul 7 '15 at 6:51
3

Ok, real face palm moment. Found the answer, it's this:

enter image description here

  • 1
    The title lured me in. I feel let down. – john Jul 11 '15 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.