9

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

System is windows 7.

FernandoSBS
  • 1,963
  • 10
  • 32
  • 43
  • What version of Windows? – ernie Jul 03 '13 at 16:51
  • windows 7. i've up the IP – FernandoSBS Jul 03 '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 http://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html – Ramhound Jul 03 '13 at 16:56
  • 1
    Possible duplicate of [How to execute a script on sleep, hibernate, resume, and shutdown](http://superuser.com/questions/321151/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 03 '13 at 17:47

1 Answers1

14

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
ernie
  • 6,293
  • 2
  • 28
  • 30