Skip to content

Commit fe5695b

Browse files
author
Simonx Xu
committed
Update remote-desktop-cannot-connect-remote-computer.md
1 parent e7b14a6 commit fe5695b

1 file changed

File tree

26 Bytes

Verify if the error is related to the machine's state or performance

First, check if the machine is running. If it is andhas console access (for example, Integrated Lights Out (iLO) for physical machines, or Hyper-V console for virtual machines), test connecting to the machine through it. If successful, proceed to the verify if the error is related to the RDP-TCP listener.

Contact Microsoft Support for further assistance in the following scenarios:

Open Registry Editor and make sure these keys are set as follows:

  • The DWORD value fEnableWinStation has the value data of 1.

    Default path: Computer\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp

  • The DWORD value fDenyTSConnections has the value data of 0.0.

    • Default path: Computer\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
    • Policy path (if the policy is configured): Computer\HKEY\_LOCAL\_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

Note

Computer\HKEY\_LOCAL\_MACHINE\SYSTEM\Setup

Both the DWORD values SystemSetupInProgress and OOBEInProgress aresetare set to 0.

Replace the RDP-TCP subkey

Export the following subkey on a functioning machine with the same Windows version:

If the error persists, the problem is with the server. Go to verify machine's configurations and roles.

If the error no longer occurs, it isit's probably related to the network and could be troubleshootedtroubleshot further with the following steps.

Note

The preceding test is only possible on Windows Server machines and maymight not be available on all occasions (for example, Azure virtual machines).

If it is notisn't available or possible, test connectivity with the Test-NetConnection cmdlet from a machine in the same network.

To confirm connectivity issues, run the following steps from a machine in the same network:

Check Firewall or Network Security Group configuration

Check if firewall rules allow RDP to the machine, or if the firewall is disabled.

Open wf.msc, select Inbound Rules and look for Remote Desktop – User Mode (TCP-In)Remote Desktop - User Mode (TCP-In) and Remote Desktop – User Mode (UDP-In)Remote Desktop - User Mode (UDP-In). Make sure they arethat they're enabled to all profiles.

You can get the same result with the following PowerShell cmdlet on an elevated session:

If other network elements are restricting traffic, they should be checked.

In case ofWhen using Azure Cloud, check if the Network Security Group (NSG) is configured to allow RDP to a subnet / or network interface card (NIC). NSG is mandatory if you use standard SKU for public IP addresses.

Check Anti-Virus (AV)

Anti-virus can negatively impactaffect RDP connections to machines. If possible, disable the AV service and test the connections.

To completely rule out the AV as the root cause, uninstall it and restart the machine.

Check Remote Desktop self-signed certificate

Check if you can re-create the Remote Desktop self-signed certificate by following these steps:

  1. Open the Certificates Microsoft Management Console (MMC) snap-in. When you're prompted to select the certificate store to manage, select Computer account, and then select the affected computer.
  2. In the Certificates folder under Remote Desktop, delete the RDP self-signed certificate.
  3. Restart the Remote Desktop Services service on the affected computer.
  4. Refresh the Certificates snap-in.
  5. If the RDP self-signed certificate hasn't been re-created, go to An internal error has occurred.
  6. If the RDP self-signed certificate has been re-created, go to the next step.

Check RDS roles

Check Remote Desktop Services (RDS) roles

Check if unnecessary RDS roles are installed, on Server Manager > Manage > Remove Roles and Features > Server Roles - Remote Desktop Services.

If unnecessary roles are installed, uncheck the corresponding box and proceed to remove them (for example, Remote Desktop Connection Broker role). Restart the machine in the end.

Machines with the Remote Desktop Connection Broker role in RDS deployments maymight still encounter the issue if the following conditions are notaren't met:

  • Check if the Remote Desktop Connection Broker service (TSSDis) is running.
  • In the Computer Management (compmgmt.msc) snap-in, System Tools > Local Users and Groups > Groups > RDS Endpoint Servers group must contain the NT AUTHORITY\NETWORK SERVICE account.

0 commit comments

Comments
 (0)