28

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?

4

2 Answers 2

36

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.
3
  • 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.
    Commented Dec 2, 2009 at 4:59
  • 3
    Not 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... Commented Dec 2, 2009 at 5:06
  • Nice. I wonder if its possible to pass as argument which trigger/event that started the task?
    – Superole
    Commented Feb 11, 2013 at 9:31
2

You can use the trigger event "on workstation unlock"...or "on workstation lock", in Windows 10 task scheduler.

Not the answer you're looking for? Browse other questions tagged or ask your own question.