Created
February 4, 2020 18:12
-
-
Save NikStoyanov/9cb1ef56fa7d8f275de20e1e2d7fc9b4 to your computer and use it in GitHub Desktop.
Stop ridiculous university policy to sleep a PC when simulations in a terminal are running
This file contains 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
' https://superuser.com/questions/329758/how-can-i-prevent-a-policy-enforced-screen-lock-in-windows-7 | |
' Sript is ran by wscript.exe | |
Dim objResult | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
Do While True | |
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}") | |
Wscript.Sleep (6000) | |
Loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment