Scheduled Tasks Running Out of Schedule

KSupport75 1 Reputation point
2020-11-30T18:42:09.78+00:00

We've noticed an issue that started occurring after migrating to Windows Server 2016. Scheduled Tasks that are configured to run on multiple days will run out of schedule. For example, we have a task that runs at 7PM ET on M,T,W,Th and F. The option to run as soon as possible if missed is unchecked. We noticed that these tasks would run on certain Sundays, out of schedule but at the time they should run M-F.

I finally determined that this only occurs after we apply monthly patches and reboot the servers. In the attached example, the task scheduler history shows Missed Task Start Rejected as soon as the server comes back up after a reboot 2:05 PM. Then at 7PM, it runs even though not scheduled to run that day since it was a Sunday and was only supposed to run M-F.

Any ideas what I'm missing?

I've also had issues in 2016 with tasks that run monthly such as on the 2nd of every month. At the time they were supposed to run, the history would show they were missed and they never ran. I ended up having to create one time schedules for those as a workaround. Seems like bugs in the task scheduled to me as this was never an issue in 2000, 2003 or 2008. We never ran scheduled tasks on 2012 for these systems so I don't know if the problem existed there.

43812-image.png

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,370 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-11-30T19:17:27.697+00:00

    I'd suggest starting a case here with product support on this one.
    https://support.serviceshub.microsoft.com/supportforbusiness

    Note: a card is required to secure the support contract but support is also free for confirmed bugs.

    If you didn't want to go that route you can report this as feedback here on uservoice.
    https://windowsserver.uservoice.com/forums/295047-general-feedback

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. MotoX80 31,571 Reputation points
    2020-11-30T20:00:50.733+00:00

    Earlier this year I tried to help some users in the old Technet forum who had problems with scheduling tasks.

    https://social.technet.microsoft.com/Forums/en-US/4b78aee7-c8db-4a48-ac6d-be74b031a5ea/scheduled-task-running-twice-ontime-then-1-hour-later

    One user reported that deleting and recreating the tasks fixed it. Changing the "Configure for:" setting may also have an impact.

    From what I recall, we were speculating that the change to/from Daylight Saving Time, and/or scheduling a task to run at exactly at the local time that corresponds to midnight GMT time may also play a role.

    I also wrote a script to try to monitor the "next run time" of a given task to try to monitor when it was scheduled and see if anyone could pinpoint a date/time/event where it changed. You could try that and monitor one of your tasks to see if that offers any insight into the scheduling.

    In the end, I suggested that someone who has the problem should open a case with Microsoft product support because it appeared that there was nothing that the peer support forum could do to help. No one has replied since then.

    0 comments No comments

  3. Jenny Yan-MSFT 9,321 Reputation points
    2020-12-01T06:08:05.393+00:00

    Hi,
    1.Did you check the settings configured under condition tab which controls the task when computer is power off.
    43965-image.png

    2.Did you create some more scheduled tasks that has checked "Delay task for up to (random delay) "?

    There used to be a known issue for server 2008 that some tasks that are not randomly delayed tasks will be postponed until the randomly delayed tasks are processed.

    https://support.microsoft.com/en-us/help/982341/scheduled-tasks-are-delayed-in-windows-server-2008-or-in-windows-vista


    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny


  4. rpodric 96 Reputation points
    2021-03-07T20:21:32.087+00:00

    The only "solutions" I've found/read about are:

    1) Deleting/recreating the tasks (as mentioned above) twice a year (after the time change occurs in your area)
    2) Giving up and changing the time on these problematic monthly tasks to UTC and enabling "Synchronize across time zones" in the trigger.

    0 comments No comments