All Products
Search
Document Center

:How do I enable Remote Desktop Services on a Windows ECS instance?

Last Updated:Jul 30, 2024

Remote Desktop Services facilitate the management and configuration of Windows Elastic Compute Service (ECS) instances. If you do not enable Remote Desktop Services on a Windows ECS instance, you cannot connect to the instance by using Remote Desktop. This topic describes how to enable Remote Desktop Services on a Windows ECS instance.

Procedure

Note

In the following example, Windows Server 2012 is used. The operations may vary based on the operating system version. For more information, see the official documentation for the corresponding operating system version.

  1. Connect to the Windows ECS instance by using Virtual Network Computing (VNC).

    For more information, see Connect to an instance by using VNC.

  2. Open the Run dialog box, enter cmd, and then click OK to open the Command Prompt window.

  3. Run the following command to check whether port 3389 is being listened on.

    If port 3389 is not being listened on, perform the following steps to enable Remote Desktop Services and enable the port.

    netstat -aon | findstr "3389"
  4. Run the following command to switch to PowerShell:

    powershell
  5. Run the following commands to enable Remote Desktop Services:

    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Value 0 -Force
    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name UserAuthentication -Value 1 -Force
    netsh.exe advfirewall firewall add rule name="Open RDP Port 3389" dir=in action=allow protocol=TCP localport=3389

    A command output similar to the following one is displayed.

    image

  6. Verify that you can connect to the Windows ECS instance by using Remote Desktop from an on-premises client.

    For more information, see Connect to a Windows instance by using a username and password.

References