Task Scheduler will not run Batch files for server reboot.

swan_solutions
swan_solutions used Ask the Experts™
on
Task Scheduler has stopped running custom reboot batch files. We've got two of them were the first is scheduled to run every Monday morning. The other is set when we need to run a reboot out of hours for that night.

It has in the past run, but we have discovered it has stopped.

It running on Windows Small Business Server 2011

We've created a test batch file that opens a cmd window that says test and awaits for someone to press a button to continue but that doesn't appear when using task Scheduler.

Any help is appreciated
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ste5anSenior Developer

Commented:
Check whether the batch files are on a local, accessible drive. Add some logging the batch files.

btw, what does "stopped running" mean? What error/return codes do you get (see in the Task Scheduler)?

Author

Commented:
They are located on the c: drive of the server and the server and the user account that runs the batch file has Full R/W Permissions. The batch file doesn't even start to run.

The used to run okay, now they don't run. Then we noticed that they Were getting error codes in Task Scheduler (0x1) and (0x41301) The task is not running, nor is the batch file.
ste5anSenior Developer

Commented:
You need to take a closer look at what you're trying to do here. Cause your status code means

SCHED_S_TASK_RUNNING
0x00041301
The task is currently running.
thanks for your answer, we have found a why around the problem by running the command line that is in the batch file directly from Task Scheduler.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial