title: TaskScheduler: "Access is Denied" (0x80070005) when running scheduled tasks on Windows Server 2019
body: <p>I just set up a new Windows Server 2019 instance, and am trying to run tasks (C# console apps) through Windows Task Scheduler. I've set it up to log in as a certain windows user, which has "Administrators" permission. However, when I try to run the task (either on a schedule or by logging in and running it on-demand) it gives the error: </p>
  
  <p>"Access is Denied" with the error code 0x80070005. Things I've tried so far:</p>
  
  <ul>
  <li>Double-checked that the user account's password is correct.</li>
  <li>Double-checked that they're in the Administrators group.</li>
  <li>Tried using a different admin user account.</li>
  <li>Installed all windows updates.</li>
  <li>Rebooted the server.</li>
  <li>Given all permissions to the directory where the job executable resides.</li>
  <li>Checked the box to run the job with "highest privileges".</li>
  </ul>
  
  <p>Nothing has worked... I'm wondering if others have faced this issue with Windows Server 2019, and how they got scheduled tasks to run?</p>