Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keeping remote desktop session "alive" [closed]

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:

  1. Running my process as some elevated user (or a service).
  2. Finding this configuration which controls whether session is marked inactive and override it.

How to keep remote desktop session "alive" when the RDP window gets minimized?

like image 947
lysergic-acid Avatar asked Apr 03 '11 08:04

lysergic-acid


People also ask

How to connect to 2 Remote Desktop sessions at once?

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.

How can I limit the duration of a RDP 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.

How to create a RDP session in Windows Server 2016?

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.

How to enable RDP keep alive function?

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


1 Answers

We had the same problem with RDP. A workaround we used was to open another remote desktop session to connect to the same server:

  1. You connect to server with RD.
  2. 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. Of course your Remote Desktop server has to support multiple connections from the same user.

like image 124
Alexey Ivanov Avatar answered Sep 24 '22 15:09

Alexey Ivanov