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

Does the Windows Task Scheduler have a way to run a command a set time after the user logs on?

I prefer it to run the first time anybody logs on, whether manually or if the computer is set to logon a particular user automatically.

share|improve this question
ok... the answer is yes. I typed over 15... entering 10. restarted the PC and waited. after 15+minutes had passed I opened and checked the task's history and sure enough 10 minutes after logon it was activated. – user305422 Mar 6 '14 at 0:12
up vote 6 down vote accepted

In Windows-7

  1. In task scheduler you can create a task.
  2. On Triggers tab you click 'New' and from the 'Begin the task' drop down menu choose 'At log on'.
  3. Below on the form tick 'Delay task for' check box and choose the delay value.

This should do the job.

share|improve this answer
I was looking for something on Windows XP which I should have mentioned, I guess I may have to implement a batch file with a delay in it. – vfclists Jan 11 '12 at 1:33

If you want to use a script, you can add a logon script per user or you can add a startup script that would run for all at startup. This link is for Windows XP Local User Account Logon Scripts If you indicate your Windows version, more detail can be provided.

share|improve this answer

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.