6

Person A and Person B use the same non-admin Windows user account to start remote desktop connection. Person A starts remote desktop connection and works on a document. When person B then starts another remote desktop session, it kicks-off (terminates) previous remote desktop connection established by person A, even without any warning. How can I prevent that? (I wish to set that another person cannot terminate previously established remote desktop connection without explicit permission by person who started connection first...)

zlatko
  • 161

2 Answers2

5

I know this is an old question but just today I was confronted with the same problem. I stumbled on this thread while looking for an answer. Not having found a solution anywhere I had to roll up my sleeves, build a test environment and do some testing. Here is the solution:

  • Open gpedit and go to Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections.

  • Find the setting Limit number of connections. Set it to "Enabled" and set the value for RD Maximum Connection allowed to 1. Reboot or run gpupdate.

After this is applied, when a second user tries to login to a machine with another user logged in, this is what they will see:

IMG:

2

Remote Desktop/Terminal Services has two settings for multiple sessions: You can either allow multiple sessions per user (in which case if you log in twice, you'll get two sessions), or force a single session per user (in which case you can only log in once and subsequent sessions will be redirected to the original session).

To change this setting:

  • Start 'regedit.exe'

  • Navigate to the following registry key:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer

  • If the value fSingleSessionPerUser doesn't exist, create it as DWORD

  • The fSingleSessionPerUser values are as follows:

    • 0x0 : Allow multiple sessions per user
    • 0x1 : Force each user to a single session
  • Enter the new value and click OK.

harrymc
  • 498,455