Showing posts with label windows lockscreen.. Show all posts
Showing posts with label windows lockscreen.. Show all posts

Friday, March 03, 2017

Timed Lockscreen on Windows with Taskscheduler

Instead of using a screensaver to activate the lock screen you can use the user32.dll to lock your screen.

Open up Task Scheduler:  I called the task lockscreen.  See below.







On the Trigger I've selected idle.  I've set the task to repeat every 10 minutes.



Actions - Start an program. The path is C:\Windows\System32\rundll32.exe   Add the arguments: user32.dll, LockWorkStation



Conditions.  Start the task only if the computer is idle for how ever many minutes you want.  I selected 1 minute.



 Settings:  Configure any additional settings and be on your way.






Crontab changes in Linux 26.04 vs previous versions

I use a small Linux server to control the turning on and shutting off our client stations with crontab.  The system I typically use is Ubunt...