title: Windows Task Scheduler Doesn't Run VBScript
body: <p>I am trying to automate a VBScript by using Windows Task Scheduler. However, I tried to use <code>cscript.exe</code> + <code>"C:\...\script.vbs"</code> but it didn't run. I also tried to directly run the same command in CMD (<code>cscript.exe "C:\...\script.vbs"</code>) and it worked.</p>
  
  <p>What might be the problem?</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>I just tried to switch the setting to <code>"Run only when user is logged on"</code> from <code>"Run whether user is logged on or not"</code> and it worked. I am wondering if there is a way to make my task scheduled run even when the user is logged off.</p>