Our corporate BOFH imposes the screen lock setting with a ridiculously short delay. It's frustrating and counterproductive.
Is there a way to prevent the automatic screen lock? I would assume there is no way to override the policy-enforced setting, but maybe there is a software that mimics user activity.
Just asking before I set up a perpetual mouse wheel. (get it?)
Answer
I use a script I title idle.vbs:
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
Every six seconds, this quickly toggles numlock on the keyboard, causing Windows to believe that someone is interacting with the keyboard, preventing screen lock. This runs on vanilla windows, you don't need development or scripting tools to use it, just make a text file with .vbs as the extension and double-click it (or place it in your startup items).
Edit: you can put this script in your startup items with
choco install IdleVbs -source https://www.myget.org/F/joshrivers-utility/
For more information on the Choclatey (choco) CLI installer please see:
No comments:
Post a Comment