Google+ Easy Prevent Screen Lock on Windows

Peter Bromberg's .NET Blog All Things Programming

Easy Prevent Screen Lock on Windows

21. March 2022 13:31 by admin in

Do you work from home but your company has an annoying screen lock policy that forces you to log in again if you've been away for a while? Here's an easy VBS script that will run and most companies won't block it from running.

 

set wsc = CreateObject( Wscript.Shell")

Do 

WScript.Sleep(60*1000)

wsc.SendKeys("{NUMLOCK}")

Loop

Save this as ScrnLock.vbs on your desktop folder. You can even set it to run on startup.

Add comment

  Country flag


Loading