Window Server 2016 Datacenter cannot automatically activate an action

Good afternoon! I recently created Datacenter for Windows Server 2016. One of my tasks is to launch my own application on a schedule (every 5 minutes). To check if the task scheduler is working correctly, try to run the calculator and set the triggers.

The problem is that when fully configured, the scheduler writes the next time he starts the calculator, but when the time comes, nothing happens. However, after the update, the scheduler writes that it was successfully launched, but this was not a fact. In addition, the calculator opens if I start it manually. which the planner shows, but this doesnโ€™t actually happen

I have been trying to solve this problem in the last 2 weeks. If necessary, I can provide any additional data. Thanks in advance!

+5
source share
5 answers

From my experience of using the standard version of Windows 2016 with the latest updates, it seems to date that the problem is that if Trigger does not start up time (even if "Run the task as soon as possible after the missed scheduled launch") checkmark), then it also does not will work with a repeat interval.

Make sure you set a start time in the future, and if you ever edit a scheduled task, make sure you change the start time / date so that it reappears in the future.

+4
source

Go to the same problem on the Windows 2016 server. Using this workaround now: change the "Start task" from "Scheduled / daily" to "At startup". Thus, a "repeated task every" x minutes works fine.

+2
source

I have a support agreement and get called about this issue. This has been confirmed internally as a bug, and they are working on a fix. I was given a preliminary permit for July / August.

The same question is asked at ServerFault, where I also posted this answer. https://serverfault.com/questions/821184/windows-server-2016-scheduled-task-schedule-must-be-in-future/849574#849574

Fashion. At my reputation level, I cannot mark anything as duplicate (and not sure if it is considered duplicate between StackOverflow.com and ServerFault.com)

+1
source

The following solution works for me. Change the parameters of the trigger launch task to the following configurations: Start the task: according to the schedule Settings: once Additional settings: repeat the task every N minutes for an indefinite period Enabled: true

General Tasks Tab: Select the Run with Highest Privileges check box, Configure for: Windows 7, Server 2012

0
source

By the way, if you have ever changed anything for a scheduled task, you will need to reset the start time, for example, the time when you want it to start the next day.

For example, we have a task that starts at 1:00 and continues until 11:55 pm, repeating every 10 minutes. So, if I need to change at 9:15, I need to change the start time to 1AM TOMORROW, and then check it manually today. If I want it to run today, I need to manually run it every 10 minutes (so much for the task scheduler).

Then, it seems, I need to come at 1 am tomorrow morning to make sure that the task scheduler started it correctly and does not harm the interaction with anything, which also works. (this is really not very reliable in Win 2016)

I do not want to set the start time at 9:20, because I need it to start at 1:00 (business dictates this).

I consider this new behavior a mistake.

Thanks Rob

-1
source

Source: https://habr.com/ru/post/1260927/


All Articles