title: Windows Task Scheduler not running VBScript when set to "Run if logged on or not"
body: <p>I'm trying to run a .vbs file as a scheduled task through Windows Task Scheduler.  Under the 'General' tab, when I select "Run only when user is logged on", the script executes as expected.  </p>
  
  <p>However, when I select "Run whether user is logged on or not", and enter the appropriate credentials, the task runs at the scheduled time, but the script does not actually run.  I've already tried running the script under wscript.exe as well as cscript.exe, but no luck with either.</p>
  
  <p><strong>EDIT:</strong> Even if I <strong>am</strong> logged in when the task begins, the script will still not run under the "logged in or out" setting.</p>
  
  <p>Additional info: The purpose of this scheduled task is to run before I arrive at work.  I've already configured my BIOS to startup at a predetermined time (06:00), and set the Task Scheduler to run at 06:27.  I've successfully tested the BIOS startup, as well as the script itself (including using the Task Scheduler to run it).  Therefore, the only weak link I can find is the option to "Run whether the user is logged on or not".</p>
  
  <p>I'm running Windows 7 Enterprise.</p>
  
  <p>Any help would be appreciated!</p>