I have trouble to schedule a task I wrote.
Basically I created a .bat file which executes an R script (script.R). When I double click the .bar file, it gets executed. I can see a result file and also some kind of log file in script.Rout.
When I try to run everything in the scheduler I have problem to get it to run. When I click on Run to run my task, the task produces several entries in the History tab which shows my task starts, and also ends in the same second. So basically nothing gets executed.
Where can I check what problem occurs? My script writes some output which is located within this .Rout file but this is not created with the task scheduler.
I already added my user to the policy settings to schedule task and also by editing the task, windows does not complain, I think this is not the issue.
Would love to get some help to find the problem.
EDIT:
I realised now, my task is running as long I do not select Execute task whether user is logged in or not. If I switch to this setting, my script does not get executed. Is there maybe some security issue?



Run with highest privilegesis not possible to set, even as administrator. It always complains my permission is not high enough. Actually this is a domain computer and I have a local Administrator which should be sufficient enough I thought. The policies where checked, only theStart inoption produces and error on starting the script. But again, I don't find log files on the exact error. TheHistoryjust says Event 103 or 203. Run and Launch Failure. – drmariod Nov 25 '15 at 09:52powercfg /hibernate offreboot and then see if that helps. Maybe it is hibernating rather than sleeping at the OS level, see if that helps for a starting point. – Vomit IT - Chunky Mess Style Apr 03 '23 at 23:30