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.






Windows 11 Blocking mdnsNSP.dll with Local Security Authority

Local Security Authority (LSA) is a feature now automatically turned on starting with Windows 11 22H2 with new installs of the system.  LSA ...