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