Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run command/script when lock/unlock windows station?

Tags:

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?

like image 767
Tam N. Avatar asked Dec 02 '09 04:12

Tam N.


People also ask

Do powershell scripts run when computer is locked?

the powershell script halts its execution, when ever the system gets locked. Once we unlock the system, the script continues its execution.

Will scheduled tasks run if computer is locked?

as a scheduled task does not appear to work when the PC is locked.

How do I lock a Windows computer from the command prompt?

One way to lock a Windows computer from your keyboard is by pressing Ctrl + Alt + Del and then selecting the "Lock" option. If you only want to use the keyboard, you can lock Windows with the Windows Key + L command.

How do you unlock a Windows session?

Press CTRL+ALT+DELETE to unlock the computer. Type the logon information for the last logged on user, and then click OK. When the Unlock Computer dialog box disappears, press CTRL+ALT+DELETE and log on normally.


1 Answers

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. 
like image 147
John Weldon Avatar answered Sep 27 '22 02:09

John Weldon