I'm using AutoIt to automate GUI operations (connecting to the machine that's running the to-be-automated app, using RDP). Whenever I minimize the RDP window (using mRemote) no further AutoIt commands are performed.
Maybe the RDP session is marked "inactive" when I minimize the window (I don't know if that's true, nor how to configure this behavior, if so). I'm thinking about 2 options to overcome this:
How to keep remote desktop session "alive" when the RDP window gets minimized?
A workaround we used was to open another remote desktop session to connect to the same server: You connect to server with RD. From RD of step 1, you connect to server once again. This way the 2nd session will be still "active" when you minimize or even disconnect your first RD session.
Set it to 1. Otherwise, try talking to the IT at your job to change this: There's 2 settings for that in Win Server 2008 under Remote Desktop Services Sessions: Specify the maximum amount of time that the user's Remote Desktop Services session can be active before the session is automatically disconnected or ended.
The basic idea is that we will first create a local user on the windows server and then initiate the RDP session to localhost. 1. Login to Windows Server → search and open “ Server Manager “. 2. Navigate to Tools → Computer Management. 3. Navigate to System Tools → Local Users and Groups → Click on “Users” → Right-click and select “ New User… “. 4.
You can try to enable RDP keep alive functionnality in the registry: In regedit.exe as admin: Go to the location HKLMSYSTEMCurrentControlSetControlTerminal Server Create or edit the DWORD value of KeepAliveEnable
We had the same problem with RDP. A workaround we used was to open another remote desktop session to connect to the same server:
server
with RD.server
once again.This way the 2nd session will be still "active" when you minimize or even disconnect your first RD session. Of course your Remote Desktop server has to support multiple connections from the same user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With