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}