title: Error running a Windows Scheduled Task under System Account
body: <p>I want to create a scheduled task to run under the "LOCAL SERVICE" account. The task will call a C# program (.NET 4.5). To do a POC, i kept the C# program to be simple - one that just writes a text to  a Console. </p>
  
  <p>The taskscheduler task is set to run when not logged on. I have made sure that the c# executable has permissions for the LOCAL SERVICE (Read, REad and Execute).</p>
  
  <p>When I run the scheduled task, i get the below error in the event log:</p>
  
  <p><code>Task Scheduler failed to start instance "{e719a65e-d4fb-4515-9fc9-3635fe69e378}" of "\Testing LOCAL SERVICE"  task for user "NT AUTHORITY\LOCAL SERVICE" . Additional Data: Error Value: 2147942405.</code></p>
  
  <p>However, if I run the same task under LOCAL SERVICe by pointing to known programs like mspaint or notepad, the task runs without errors. I am not sure what is so specific with permissions for the C# program.</p>
  
  <p>Appreciate some thoughts on this.</p>