Link to home
Start Free TrialLog in
Avatar of swan_solutions
swan_solutionsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Task Scheduler will not run Batch files for server reboot.

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
Avatar of ste5an
ste5an
Flag of Germany image

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)?
Avatar of swan_solutions

ASKER

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.
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.
ASKER CERTIFIED SOLUTION
Avatar of swan_solutions
swan_solutions
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial