$myshell = New-Object -com “Wscript.Shell”
Write-Host “Welcome to Keep Alive! You may now minimize this window.”
while (1)
{
$myshell.sendkeys(“{NUMLOCK}”)
Start-Sleep -Seconds 1
$myshell.sendkeys(“{NUMLOCK}”)
Start-Sleep -Seconds 59
}
$myshell = New-Object -com “Wscript.Shell”
Write-Host “Welcome to Keep Alive! You may now minimize this window.”
while (1)
{
$myshell.sendkeys(“{NUMLOCK}”)
Start-Sleep -Seconds 1
$myshell.sendkeys(“{NUMLOCK}”)
Start-Sleep -Seconds 59
}