Cogger

Disable-Screen-Timeout.ps1

Jan 17th, 2022
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. # Disable Screen Lock
  2.  
  3. $WShell = New-Object -Com Wscript.Shell
  4. while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60}
  5.  
  6.  
Advertisement
Add Comment
Please, Sign In to add comment