Wednesday, April 12, 2023

Solve: Remote Desktop Error "You have been disconnected because another connection was made to the remote computer"

This prompt means either someone else has forcefully knocked you out of your remote session (Desktop OS remote session only allow 1 session concurrent) or you mistakenly remoted twice into the same computer and forcefully closed your original remote session.

If you continue to encounter this error, you can check to see who is attempting to log in and override your remote session in the remote machines using a command line command.

  1. Type the following command into Windows Command Prompt: user
  2. This outputs the currently logged-in users.
    You can also search event viewer to find out the last logged-in user.
    Open Event Viewer (Start -> type Event Viewer). Expand Windows Logs -> Security and search for Event ID 4624.
    This will display all login events on the machine. You can identify who is logging in (Windows user ID) around the time you are being kicked out.
  3. Check logs for remote desktop: Event Viewer - Applications and Services Logs, Microsoft, Windows, TerminalServices-RemoteConnectionManager, Operational
  4. A workaround I found online:
    Disable the "Restrict each user to a single session" setting on the remote machine via 'gpedit.msc', and go to the following location
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections
    Here you will need to change a setting called ‘Restrict Remote Desktop Services users to a single Remote Desktop Services session’ – set it to disabled.

How to Remove Saved Credentials for Remote Desktop  Connection

Step 1: Access Control Panel in Windows 10.

Step 2: In the Control Panel page, click View by and choose Large icons.

Step 3: Click the Credential Manager option to open the Credential Manager window

Step 4: Under the Windows Credentials section, tap Windows Credentials, click TERMSRV and click Remove link.

Step 5: Select Yes button to permanently delete this Windows credential.

Step 6: After the completion of the above steps, you will be asked for credentials when you connect. Then you can close the Credential Manager as you like.


Post a Comment