title: Windows scheduled task run with delayed start
body: <p>I have a batch file which is set to run as a Scheduled Task on Windows Server 2008 SP2.</p>
  
  <p>The content of the batch file is as below:</p>
  
  <pre><code>cscript ".\Scripts\ProcessImport.wsf" &gt; .\Logs\Import.log
  </code></pre>
  
  <p>The task is scheduled to run at 02:00 and 16:30 every day. The 02:00 run is always delayed by at least a couple of hours but the 16:30 run always starts on time.</p>
  
  <p>I have deleted and recreated the task but the issue persists.</p>
  
  <p>The scheduled task settings that have been selected are:</p>
  
  <ol>
  <li>(General) Run whether user is logged on or not</li>
  <li>(Conditions) Start the task if only the computer is on AC power Stop if the computer switches to battery power</li>
  <li>(Settings) Allow task to be run on demand</li>
  <li>(Settings) Stop the task if it runs longer than 3 days</li>
  <li>(Settings) If the running task does not end when requested, force it to stop.</li>
  </ol>
  
  <p>There is nothing else running on the server around that time and still it is delayed.</p>
  
  <p>Has anyone faced a similar issue before and fixed it?</p>
  
  <p>This is my task:</p>
  
  <pre><code>"HostName": ""
  "TaskName": "\RunETL_2am"
  "Next Run Time": "3/02/2018 2:00:00 AM"
  "Status": "Ready"
  "Logon Mode": "Interactive/Background"
  "Last Run Time": "2/02/2018 3:31:44 AM"
  "Last Result": "0"
  "Author": ""
  "Task To Run": "Multiple actions"
  "Start In": "Multiple actions"
  "Comment": "Runs all three ETLs Export, Transform, Load in single job. The Transform and Load scripts/processes are built to wait for the previous job to finish before they start doing anything."
  "Scheduled Task State": "Enabled"
  "Idle Time": "Disabled"
  "Power Management": "Stop On Battery Mode, No Start On Batteries"
  "Run As": "*"
  "Delete Task If Not Rescheduled": "Enabled"
  "Stop Task If Runs X Hours and X Mins": "72:00:00"
  "Schedule": "Scheduling data is not available in this format."
  "Schedule Type": "Daily "
  "Start Time": "2:00:00 AM"
  "Start Date": "31/01/2018"
  "End Date": "N/A"
  "Days": "Every 1 day(s)"
  "Months": "N/A"
  "Repeat: Every": "Disabled"
  "Repeat: Until: Time": "Disabled"
  "Repa Until: Duration": "Disabled"
  "Repeat: Stop If Still Running": "Disabled"
  </code></pre>