Beat your Idle-Timeout on your computer so you do not have to unlock your computer every time you walk your dog.

Scenario: My computer is configured by my organization to lock after its idle for, what feels like, 5 minutes.

Solution: Run this loop in PowerShell.

while (1) {(New-Object -Com "Wscript.Shell").SendKeys("{SCROLLLOCK}{SCROLLLOCK}");Write-Host "`n`n`n`n`n`n`n`ndun dun dun dun--Staying alive. staying alive $(get-date -format MM/dd/yyyy:hh:mm:ss)"; sleep 180}
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: