I'm connecting from a windows vista desktop to a server running windows server 2003. I'm using Remote Desktop and I'm running some very long running processes on the remote server. My problem is that Remote Desktop logs out my session and terminates any running processes after some amount of time without input from myself. This means I need to sit at my pc wiggling the mouse every now and then rather than head out and enjoy the glorious sunshine for a few hours.
Does anyone know how I disable this behavior? I assume it is configurable somewhere.
Or
Source
For Windows 7/Windows 10/Windows Server 2012 and above:
I ran into the same problem, but was unable to access the Group Policy or Registry, due to restricted privileges.
However, I found another solution which uses Windows Script Host to run a piece of JScript which will toggle Scroll Lock every five minutes, for one hour.
Here's the script. Just save it with a
.js
extension, and run it with "Microsoft Windows Based Script Host".If you want to change the key being pressed, check out this link, and swap out the
SendKeys
parameter for another character.The same solution, in PowerShell: