How do you set the Scheduled Tasks "Run only if logged in" option from the command line?
Posted
by Paul K
on Super User
See other posts from Super User
or by Paul K
Published on 2009-12-04T23:11:27Z
Indexed on
2010/04/11
22:53 UTC
Read the original article
Hit count: 430
I want to create some tasks with the "Run only if logged in" option set, but using a batch file, as you can in the user interface version of the schtasks.exe tool.
I'm doing this so I don't have to specify a password, either in the batch file, or when the batch file is run... I would use /ru System but I can't because the tool I'm automating (SyncToy 2.1) won't run with that account because I am hitting a network drive...
Also, I noticed that Google Chrome sets up some tasks with this option set during installation, so I'm thinking there must be a way...
© Super User or respective owner