We are using WebBrowser control to download a certain file in console application. We scheduled this console application in task scheduler with this selected option "Run only user is logged on", its working fine. But we scheduled this for "Run whether user is logged in or not". It will not work. We couldn't see any error in command prompt. Can any faced this scenario?
If an application is set to run whether the user is logged in or not, no user interface will be displayed. See here:
An easy proof of this would be to write to a logfile when the application is launched. If the file is created at the expected time, then the task scheduler is working correctly and the application is being run.
Regarding your comment below
its only working in machine turned on, otherwise not working
If you have the machine turned off at the scheduled time of the task, it will not run. It can be logged out, but the machine does in fact need to be turned on. Your comment makes this seem like the cause.
I faced the same issue and I resolved the issue by the following steps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.