How do you set the Scheduled Tasks "Run only if logged in" option from the command line?
- by Paul K
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...