title: Windows Task Scheduler & Administrator user
body: <p>I have to run automatically a batch file <strong>once a week</strong> to update a file.
  To do so I have created a task with Windows Task Scheduler on the company Server with the following options:</p>
  
  <ul>
  <li><strong>Security Options:</strong> user me, run only when user is logged in, Configure for Windows Server 2012  </li>
  <li><strong>Trigger:</strong> every Monday at 11.00am  </li>
  <li><strong>Action:</strong> start a program (the path to the <code>bat</code> file with quote) </li>
  </ul>
  
  <p>This configuration works fine. However I wish the update to happen even if I am not here.
  So I tried to change to Security Options to:</p>
  
  <ul>
  <li>User: administrator (with batch job rights)  </li>
  <li>Run whether user is logged on or not  </li>
  <li>Run with Highest privileges</li>
  </ul>
  
  <p>Trigger and action are unchanged.
  I have also entered the admin password when saving the task. </p>
  
  <p>On the Task History the action and task are completed, but the <code>bat</code> file is not run and there is no update happening on my file.
  The Last Run Result display:  </p>
  
  <blockquote>
    <p>Incorrect function (0x80070001).</p>
  </blockquote>
  
  <p>Looking at other posts I have tried different combination:  </p>
  
  <ul>
  <li>Run with Highest privileges: ticked or not  </li>
  <li>The path to the <code>bat</code> file with or without quote  </li>
  <li>Try to add the path without quote in Start in (optional) </li>
  </ul>
  
  <p>None of these worked. Any idea?</p>
  
  <p>The code is working fine when activated manually. I am not sure what you mean by the command that start the batch. 
  In the Scheduler it is on the Action tab. The action is start a program and the details is the path to the file ...run.bat
  When launch manually I right click on the file and select run as administrator.</p>
  
  <p>Thank you in advance for your help.
  Sylvie</p>