Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
1  
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
add comment

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
add comment

Your Answer

 
discard

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.