Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a windows server 2008 r2 virtual machine that is set up to run various tasks at night, it reads from a database creating CSVs and copies files to and from locations on other disks. All tasks are set to run while I am not logged in and with full permission. The tasks all run batch files which in turn run scripts.

What's happening is that most of the time the task report as completed when i check them in the morning but the time it took for completion is 0 seconds (the task did not run basically) no errors are logged and when i right click and run a selected task it executes just fine. This behavior is further complicated by the fact that some tasks will sometimes run just fine as scheduled.

The scripts and batch files work perfectly when I manually run them through task manager the only time they fail (and they dont always fail) is when they are automated. Any suggestions?

share|improve this question
Google to see if 2008 has known issues for task scheduler. Otherwise it's permissions and scheduler settings or your batch files might have 'gotcha's in there. – foxidrive yesterday
See the batch files are able to run just fine every once in a while and they run fine when I use the run action in task scheduler. Permissions may be something I should look into a little more. Is there a chance they could be failing because they conflict with windows scheduled tasks? – Larkin 54 yesterday
Well for example the system account has no access to network paths. Are they running under your account and credentials? – foxidrive yesterday
No they are running in on an elevated account with full permissions with access to networked drives my only other thought is that there are are intermittent issues with the drives it is trying to connect too but would that not return an error to the scheduler? – Larkin 54 yesterday
No. Any error-checking has to be done in your batch file. – foxidrive yesterday
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.