Advertisement
emerginginstance

preventSleep.ps1

Aug 20th, 2021 (edited)
1,638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $myshell = New-Object -com "Wscript.Shell"
  2. while (1) {
  3.   Start-Sleep -Seconds ( 60 * 10)
  4.   $myshell.sendkeys(".")
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement