SHARE
TWEET

Untitled

a guest Jun 24th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function stay-alive {
  2.   Write-Output 'Staying Awake...'
  3.   $minutes = 60
  4.   $myshell = New-Object -com "Wscript.Shell"
  5.  
  6.   for ($i = 0; $i -lt $minutes; $i++) {
  7.     Write-Output 'Sending 1 beam of energy'
  8.     Start-Sleep -Seconds 60
  9.     $myshell.sendkeys(".")    
  10.   }
  11.  
  12.   Write-Output 'End of Sleep'
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top