This time a simple as well as important post. Have you tried to run a scheduled task every minute?
When editing the trigger of a task schedule, there is a section in which the “Repeat task every” parameter can be set, and you have probably noticed that by default only the values “5 minutes, 10 minutes, 15 minutes, 30 minutes, 1 hour” are available.
Fortunately, it is possible to configure every certain amount of minutes or hours by typing manually the time.
For example, typing “1 minute” (or “1 minutes” also possible):
Or any number of minutes:
Or any number of hours:
Even a combination of hours and minutes. (its not something like “2 hours 30 minutes” as could think). by configuring the total amount of minutes. For example, for 2h30m, the number of minutes would be 150:
Seems to work fine until the server reboots, then it does not run any more, despite the settings option being enabled for Run task as soon as possible after a scheduled start is missed. Oddly, the Next Run Time continues to get set for the next future time it should run, but it does not actually run. I have found that resetting the Start date/time to a future date/time and resaving those settings does get the task to begin running again, at least until the server next reboots, and then it stops running again, even though the Next Run Time keeps getting modified using the previously defined trigger schedule. Any ideas on how to ACTUALLY get a script to run once every minute, even when the computer reboots, or when the Scheduled Task is interrupted via a Disable followed by an Enable command? The Run task as soon as possible after a scheduled start is missed option used to work with Win2012 and earlier with time scheduled tasks on a server that reboots. Not anymore. Any ideas?
In case someone else has similar problem:
Set trigger to “at startup”, then keep “repeat after X minutes”