RDS session connectivity troubleshooting guidance

Try our Virtual Agent - It can help you quickly identify and fix common Active Directory replication issues

This article is designed to help you troubleshoot Remote Desktop Session (RDS) connectivity scenarios.

Check the status of the RDP protocol

Check whether the RDP listener is working

Common issues and solutions

Credential limit per app

Windows allows only up to 20 credentials per app. If you have to have more than 20 credentials per app, follow these steps to bypass the 20-credential limit:

  1. Run regedit.
  2. Create or set the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Vault\MaxPerAppCredentialNumber DWORD-type registry value to a number that's greater than 20.
  3. Restart the computer.
  4. Test the settings by creating a new set of credentials in the Remote Desktop client.

Potential risks: When you change this registry setting, it's important to keep the following things in mind:

  • This is an admin operation. Any errors that are introduced into the registry could cause your computer to become unstable. Non-admin users change the registry entries at their own risk.
  • This registry change will affect all apps that are installed on the computer.

Clients can't connect, and "Class not registered" error returned

When you try to connect to a remote computer by using a client that's running Windows 10, version 1709 or a later version, the client might not connect if the Remote Desktop Session Host server displays the "Class not registered (0x80040154)" error code.

This issue occurs if the user who's trying to connect has a mandatory user profile. To resolve this issue, install the July 24, 2018—KB4338817 (OS Build 16299.579) Windows update.

Remote laptop disconnects from wireless network

This issue might occur when a Remote Desktop client connects to a laptop computer by using an 802.1x wireless network. The laptop intermittently disconnects from the wireless network and doesn't automatically reconnect.

This is a known issue that occurs if the network authentication setting for the wireless network connection is User authentication.

To work around this issue, set the network authentication setting to User or computer authentication or Computer authentication.

Note

To change the network authentication settings on a single computer, you might have to use the Network and Sharing Center control panel to create a new wireless connection that uses the new settings.

For a full description of how to configure wireless network settings by using GPOs, see Configure Wireless Network (IEEE 802.11) Policies.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for User Experience issues.

Prerequisites

  1. TSS must be run by accounts with administrator privileges on the local system, and EULA must be accepted (once EULA is accepted, TSS won't prompt again).
  2. We recommend the local machine RemoteSigned PowerShell execution policy.

Note

If the current PowerShell execution policy doesn't allow running TSS, take the following actions:

  • Set the RemoteSigned execution policy for the process level by running the cmdlet PS C:\> Set-ExecutionPolicy -scope Process -ExecutionPolicy RemoteSigned.
  • To verify if the change takes effect, run the cmdlet PS C:\> Get-ExecutionPolicy -List.
  • Because the process level permissions only apply to the current PowerShell session, once the given PowerShell window in which TSS runs is closed, the assigned permission for the process level will also go back to the previously configured state.

Gather key information before contacting Microsoft support

  1. Download TSS on all nodes and unzip it in the C:\tss folder.

  2. Open the C:\tss folder from an elevated PowerShell command prompt.

  3. Start the traces on the client and the server by using the following cmdlets:

    Note

    Run these traces simultaneously on the client, Session Host server(s) and licensing server(s).

    • Client:

      TSS.ps1 -scenario Net_RDScli
      
    • Server(s):

      TSS.ps1 -scenario Net_RDSsrv
      

    If you get many security warnings related to the execution policy while running the script, run the Set-ExecutionPolicy -ExecutionPolicy Bypass -force -Scope Process cmdlet to bypass those warnings.

  4. Respond to the EULA prompt.

  5. Allow recording (Video), and enter Y.

  6. When the script displays Reproduce the issue and enter 'Y' key AFTER finishing the repro on both the client and the server(s), start reproducing the issue.

  7. Enter Y to finish the log collection after the issue is reproduced.

The traces will be stored in a zip file in the C:\MS_DATA folder, which can be uploaded to the Microsoft workspace for analysis.

Reference