Last active
November 9, 2021 03:31
-
-
Save ByronScottJones/d0fb4b8a203c938fb06228d52cb4649e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear-host | |
Echo "Keep-Alive with Scroll Lock..." | |
$WShell = New-Object -ComObject WScript.Shell | |
while ($true) { | |
$WShell.sendkeys("{SCROLLLOCK}") | |
start-sleep -milliseconds 100 | |
$WShell.sendkeys("{SCROLLLOCK}") | |
Start-Sleep -seconds 240 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment