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

How to make a window task run every time I enter my password/unlock the computer?

System is windows 7.

share|improve this question
What version of Windows? – ernie Jul 3 '13 at 16:51
windows 7. i've up the IP – FernandoSBS Jul 3 '13 at 16:53
Use the Task Manager and selct the task to happen on the event that handles when a user logs into the account. Here is one such tutorial… – Ramhound Jul 3 '13 at 16:56
Possible duplicate of How to execute a script on sleep, hibernate, resume, and shutdown. chunkyb2002's answer tells you about the different Task Scheduler triggers available. – Karan Jul 3 '13 at 17:47
up vote 4 down vote accepted

You can set triggers for tasks, as opposed to running on a schedule.

  • Start Task Scheduler from the start Menu
  • Select the Task Scheduler Library in the left nav pane
  • Select Action > Create Task... (not Create Basic Task...) from the menu bar
  • In the new Create Task window, select the Triggers tab
  • Click on the New... button
  • In the "Begin the task:" drop down, select "At log on" or "On workstation unlock"
  • Repeat and create a second trigger for the task that covers the one you didn't select before
  • configure the rest of the task normally
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.