DEV Community

terminalpuncher.com
terminalpuncher.com

Posted on

Preventing Lock Screen Timeout When Idle using PowerShell

Run this code within PowerShell to prevent lockouts when Idle. Simply and Effective.

$WShell = New-Object -Com Wscript.Shell
while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)