title: ERROR: Access is denied, when creating scheduled task
body: <p>Here is the error that I'm getting:</p>
  
  <pre><code>Create task command: '/cygdrive/c/Windows/System32/schtasks.exe /create /SC MINUTE /MO 10 /TN "Name of task" /TR "D:\path\to\exe /REQUIRED_PARAMETER" /RU System /F'
  ERROR: Access is denied.
  </code></pre>
  
  <p>One of the tips I found was to run this:</p>
  
  <pre><code>cd\
  cacls c:\windows\tasks /T /E /P Administrators:F
  cacls c:\windows\tasks /T /E /P SYSTEM:F
  </code></pre>
  
  <p>A few other things:</p>
  
  <ul>
  <li>I confirmed that the Task Scheduler service is running</li>
  <li>The Event Viewer didn't show anything specific to the task creation</li>
  <li>I've captured and filtered events in <code>Procmon</code>, where no events with the results <code>ACCESS DENIED</code> could be found.</li>
  <li>The user is part of a group (ie Users) having <code>read</code> and <code>execute</code> on <code>schedtasks.exe</code></li>
  <li>The user has full access to <code>c:\Windows\tasks</code> manually provided</li>
  <li>The user owns the folder of the executable targetted with the task</li>
  </ul>
  
  <p><strong>Edit #1</strong></p>
  
  <ul>
  <li>User creating the task is not part of Administrators. When I put him into Administrators, it works. However, we believe that he shouldn't be in Administrators.</li>
  </ul>