Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a scheduled task on my Windows 2008 R2 server which is supposed to run a powershell script to download a backup of a file from another server. On this same server, I have scheduled the exact same task to run and download from 2 other servers - these tasks work fine.

This one task in particular never seems to do anything. The task history says it was executed successfully but the files are never downloaded. If I run the powershell script manually, the files are downloaded. If I run the automatic task manually, the files are downloaded again. If I disconnect and come to check the next day, the files have not been downloaded.

I have it set to run whether the user is logged on or not. Why is it not working?? How I can enable more detailed logging?

share|improve this question
    
if you wrote the application you can write in the code for it to log on every event. you should also check the Task/Application to make sure you know where it is downloading the file too. maybe change the path name so that it is something like c:/folder1/folder2 etc. rather than a relative pathname like ../folder4 –  Malachi Jul 19 '13 at 18:36
    
Is the task scheduler service running? –  BigHomie Jul 22 '13 at 13:33
    
Sounds like it might be an authentication issue (but unfortunately i don't know how to investigate it any further)... –  C.B. Aug 19 '13 at 13:57

1 Answer 1

I have faced the same issue, my task would take more then 3 hours to complete, and in logs it would stopped exactly after 2 hours.

Right click on task in Task Scheduler -> export. It will export the task in xml format. Open the xml file in Notepad and check the <ExecutionTimeLimit> of your task.

Edit the file and import the task according to the time limit required for your task.

share|improve this answer
    
It does not seem to be the same problem as in the question. You can post a new question and (after a time limit) answer it yourself. –  pabouk Nov 12 '13 at 11:14

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.