Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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...

share|improve this question
up vote 0 down vote accepted

If you're brave, you could modify the .job file directly, it's a single byte that you change from 0x00 to 0x20 by the looks of things, you'll find the file in %windir%\tasks

share|improve this answer
thanks, it's byte 0x31 in the .job file... – Paul K Dec 5 '09 at 22:30
then I'll start using the /IT switch as answered by CGA when I move to Windows 7... – Paul K Dec 5 '09 at 22:32

Here is a link to the available switches for schtasks.exe. I think you're looking for th /IT switch.

share|improve this answer
/IT switch would be ideal but unfortunately it's not available in Windows XP SP3 – Paul K Dec 4 '09 at 23:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.