yonbret
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?
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?
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.
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.
ASKER
I have tried it with both highest privilege option checked and unchecked and it still doesn't run.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I added the start in location and it ran perfectly.
Thanks.
Thanks.
ASKER
Worked perfect when the start in location was added.
Glad to help.
What is the goal of the batch file?