Task scheduler - Windows 2019 - Indefinitly task not running

Eric C 126 Reputation points
2021-03-12T09:58:50.41+00:00

Hi,

This is not a qestion, this is an answer ! I hope it could help because I spent hours.

On Windows server 2019, if you have a task to repeat let say every 5 minutes indefinitly, You have to trigger it this way :

  • On a schedule
  • One time
  • Advanced settings / repeat tasks every xxx minutes for a duration Indefinitly.

or

  • On a schedule
  • Daily
  • Advanced settings / repeat tasks every xxx minutes for a duration 1 Day.

On Windows server 2012, 2008, I used to select "Daily" instead of "One time" for an indefintly period, but if you do so in Windows 2019 Task scheduler, the task will never run, when the time is come it just schedule the next time without running any program.

It sounds finally logic but you have no information about why the task is not running (and there is not entry log in the task scheduler history), and the next run time is however exact, but nothing happens

Regards,

Eric

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,469 questions
{count} votes

14 answers

Sort by: Newest
  1. Christian Alzapiedi 0 Reputation points
    2024-03-10T09:12:39.03+00:00

    Hi All,

    In our environment with Windows Server 2019, we noticed that the "daily" task starts running when it encounters the scheduled time. Essentially, as a workaround to ensure the task executes as soon as possible, you can adjust the defined time by setting it slightly later than the system time.

    The date doesn't matter, it seems that only the execution time of the task matters.

    0 comments No comments

  2. Russ 5 Reputation points
    2023-10-19T13:36:54.7033333+00:00

    I got mine fixed by changing from indefinitely to 1 day

    User's image

    1 person found this answer helpful.
    0 comments No comments

  3. justatechguy-9085 0 Reputation points
    2023-10-13T15:51:41.82+00:00

    Until the October 2023 Patches for Windows Server 2019 both methods shown by Eric have been working for us. However after applying the 2023/10 Patches for Windows Server 2019 only the first variant with "one time" does still work. The other where you set it as "daily" is not working anymore when selecting "Advanced settings / repeat tasks every xxx minutes for a duration 1 Day". It just keeps re-scheduling the task without actualy executing it...

    Over 3 Years MSFT does now know about this and still there is no fix and it even gets more worse. If it wouldn't be MSFT I would be suprised...

    0 comments No comments

  4. Nimmagadda, Krishna 0 Reputation points
    2023-01-24T15:00:30.89+00:00

    If we configure the job as Start on a date and time and repeat task every 15mins indefinitely, Do we need to rerun the job every time the server is restarted?

    0 comments No comments

  5. samsad beagum 1 Reputation point
    2022-10-18T07:10:01.477+00:00

    Hi Eric,
    Thank you for your answer which helped me after a long day of search.
    It happened in Windows 11 also.

    0 comments No comments