I had Task Scheduler start a task at 11:55 PM daily -- same setup on 5 servers.
Last night I changed the same job to be run at 2 AM and 7 AM instead.
It did not launch either. I know because it starts a .bat file that writes to a log with date stamp. The logs are not there.
When I go to Properties
->History
, it reports that Task Started
,Task Completed
both at 2 AM and 7 AM.
Right-click
->RUN
caused it to run immediately, and the log files appeared.
It was running nightly before, so obviously all the security settings, "run when user is logged out" (although I was not logged out), etc, should be correct.
Anything I am missing?
Are there known Task Scheduler reliability issues?
I am using Windows Server 2012 R2. Thank you.
The issue was with the timestamp:
In the AM Windows prepends a space to the time stamp:
which is not acceptable as a file name. I corrected the issue by adding a line that replaces space with underscore: