This project has moved and is read-only. For the latest updates, please go here.

Taskscheduler file access problem in Windows Server 2012

Topics: Errors
Aug 1, 2014 at 2:35 PM
I am writing an application that uses taskscheduler and when I run it on Windows Server 2012, the program that is being run from scheduler is unable to access files that it is using (a SecurityException is being thrown). This problem doesn't occur on earlier versions of Windows(Windows 7, Vista, XP). Does TaskScheduler need some specific rights or options to handle these kinds of tasks on Windows Server 2012?
Aug 1, 2014 at 4:15 PM
Windows 8 and Server 2012 run the same updated library from Microsoft. There are some new security considerations. Check the following links for more information. If I had to guess, it sounds like the account used to run the task (either by setting it during registration or the one used to connect to the TaskService instance) does not have the rights to the file or the executable is not being run in Administrator mode so UAC is getting in the way. There are other discussion threads about both with answers.