Users

All Posts (1)

avatar

beylie

mouse jiggler - keep awake thing

avatar
avatar
avatar
avatar
avatar

OK - please do think about doing this, it would make life a lot easier. The one thing in particular that's driving this for me is Duo two factor authentication for Remote Desktop Gateway. This software replaces the RAP and CAP policies on your RDG server with their own, and it's impossible to set your own RDG timeout policy without editing the registry on the server, And in my experience, the software often doesn't honor the registry keys even if you do set it higher, which means you're limited to an hour idle going through the RDG before it times you out. It's just a giant pain in the rear, and Duo seems to have abandoned any updates to this product. So if you could generate synthetic activity that would keep the session alive it would save me from having to log in again over and over every time I work on machines with this software. I know you can do it, since you do it to run logoff.exe, so it would be really helpful if this were available.

A very inelegant workaround you can use is this simple powershell script:

$WShell = New-Object -Com "Wscript.Shell"

while (1) {$WShell.SendKeys("{left}"); sleep 60}

This will send a key (in this case the left arrow) to the computer where you run it on and simulate activity in an infinite loop. You can just run this until you come back to the same machine, kill the script etc.

SendKeys Class (System.Windows.Forms) | Microsoft Learn - if you want to send other keys instead of {left arrow}

1 - 1 of 1 items