I have Windows 7 pro at work. My problem is I keep on forgetting to clock in/clock out (using the intranet timesheet system). Is there a way to run a script or command to automatically open the timesheet page each time I lock/unlock my station?
Asked
Active
Viewed 4.6k times
26
-
http://stackoverflow.com/questions/270629/run-a-script-when-either-locking-or-unlocking-windows-xp – Oleksandr Tymoshenko Dec 02 '09 at 04:37
-
that link doesn't account for new functionality in windows 7 – John Weldon Dec 02 '09 at 04:40
-
probably belongs on superuser.com – John Weldon Dec 02 '09 at 04:43
-
2had i known this could be done with task scheduler i woulda posted this over superuser :) – Tam N. Dec 02 '09 at 05:04
2 Answers
34
Yes, windows 7 task scheduler allows a dizzying array of new ways to schedule tasks:
One is on log on, and another is on event which could be a security event for locking the workstation.
Administrative Tools --> Task Scheduler
- Create Task
--> Triggers Tab
--> New Button
--> Begin Task drop down box...
etc.

John Weldon
- 39,849
- 11
- 94
- 127
-
yay it worked! is there a way to make it so that the computer will NOT lock until i kill iexplore.exe? tyvm! – Tam N. Dec 02 '09 at 04:59
-
3Not that I know of... you may want to make a task that automatically writes the time to a text file when you lock the screen, and then when you unlock it then automatically bring up the timesheet AND the text file... – John Weldon Dec 02 '09 at 05:06
-
Nice. I wonder if its possible to pass as argument which trigger/event that started the task? – Superole Feb 11 '13 at 09:31
1
You can use the trigger event "on workstation unlock"...or "on workstation lock", in Windows 10 task scheduler.

Martin Schröder
- 11
- 1