Link to home
Start Free TrialLog in
Avatar of yonbret
yonbretFlag for United States of America

asked on

Batch File won't run on Windows Server 2012 R2 Task Scheduler

I have a batch file (.bat) that I need to run on a Windows 2012 R2 server.

When I click on batch file on the C Drive the batch file runs without a problem.

I have the batch file scheduled to run once a day using Task Scheduler. Task Scheduler shows that the batch completed successfully each time, but the batch file really doesn't run.

I imagine it is a security problem, but I have the Task Scheduler set to run using the Domain Administrator account and it still won't run.

Any ideas why I can't get this batch file to run?
Avatar of yo_bee
yo_bee
Flag of United States of America image

Are you stilled logged on to the server or all session logged off?  

What is the goal of the batch file?
Avatar of yonbret

ASKER

The domain administrator still has a Remote Desktop session open on the server.

The batch file is from one of our customers. It transfers files from a set location on our server to their server.

I have ran this same batch file for years on Windows Server 2003, I recently installed the latest version of this batch file on a Windows 2012 R2 server and now it won't run.
What if you check off run with the highest privilege option.
Avatar of yonbret

ASKER

I have tried it with both highest privilege option checked and unchecked and it still doesn't run.
ASKER CERTIFIED SOLUTION
Avatar of yo_bee
yo_bee
Flag of United States of America 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
Avatar of yonbret

ASKER

I added the start in location and it ran perfectly.

Thanks.
Avatar of yonbret

ASKER

Worked perfect when the start in location was added.
Glad to help.