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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
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)?
swan_solutionsAuthor 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 DeveloperCommented:
You need to take a closer look at what you're trying to do here. Cause your status code means

The task is currently running.
swan_solutionsAuthor Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.