Share via

Task Scheduler alternative

Matthias 25 Reputation points
2025-11-13T14:44:35.8033333+00:00

Hi there,

Microsoft's task scheduler is not reliable ( do not take my word for it, just search for "Task Scheduler did not launch task xyz as it missed its schedule. Consider using the configuration option to start the task when available, if schedule is missed" ).

There are a ton of posts on several platforms. Many of them are years old.

So is there an alternative to "task scheduler"?

Windows for business | Windows Server | Performance | Other
0 comments No comments

Answer accepted by question author

  1. MotoX80 37,676 Reputation points
    2025-11-17T16:56:54.1833333+00:00

    Is the task set to "Run only when the user is logged on" or "Run whether the user is logged on or not"? Your xml file does not have a <LogonType> attribute in it.

    Does your get_status_of_services.bat need to access any network resources? That is, does it build some report file and save it to a file share on a different server? Or does it only access local resources?

    If you're just monitoring (or restarting) services, you may want to consider running the task as the SYSTEM account instead of a domain account.

    Your task is set to "run a bat file". I would recommend that you set it to run cmd.exe with the /c (Carries out the command specified by string and then terminates) switch. That should insure that cmd.exe terminates after the bat file completes. I have also found it useful for troubleshooting to capture stdout and stderr.

    https://learn.microsoft.com/en-us/answers/questions/2141466/how-to-run-a-task-with-task-scheduler

    I believe that your issue is related to the fact that you set both the "Recur every" and "Repeat task every" settings along with the duration of Indefinitely.

    User's image

    See the accepted answer in this question.

    https://learn.microsoft.com/en-us/answers/questions/1182144/powershell-task-schedule-running-multiple-times

    For a task that monitors services every 5 minutes, I would suggest these settings. I don't see any value in the 30 second randomization.

    User's image

    Also enable task history, and monitor Next run time, and Last run result.

    https://learn.microsoft.com/en-us/answers/questions/5621462/task-scheduler-not-repeating-tasks-after-initial-t

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. HLBui 5,365 Reputation points Independent Advisor
    2025-11-13T18:02:50.43+00:00

    Hi Matthias.

    This behavior typically occurs when the system is unavailable at the scheduled time and the task isn’t configured to “Run as soon as possible after a scheduled start is missed.” Enabling that option often resolves most reliability issues.

    If you’re looking for alternatives, there are a few options depending on your use case. For Windows environments, PowerShell scripts combined with Windows Services or Azure Automation can provide more robust and cloud-managed scheduling. If you’re working in a mixed or server-based environment, Azure Logic Apps, Azure Functions (with timer triggers), or System Center Orchestrator are great enterprise-grade solutions for task automation and reliability.

    I hope this information is useful. Thank you


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.