All Products
Search
Document Center

:Enable Remote Desktop Services on a Windows instance

Last Updated:Jun 21, 2026

Remote Desktop Services lets you manage and operate your Windows instance. If this service is not enabled, you cannot connect to your instance using Remote Desktop. This topic describes how to enable Remote Desktop Services on a Windows instance.

Procedure

Note

The following steps use Windows Server 2012 as an example and may differ for other operating system versions. For version-specific instructions, see the official Microsoft documentation.

  1. Connect to the Windows instance using a VNC remote connection.

    For detailed instructions, see Connect to an instance using VNC.

  2. Open the Run dialog box, enter cmd, and then click OK to open the command-line tool.

  3. Run the following command to check if port 3389 is listening.

    If the command returns no output, port 3389 is not listening. Proceed with the following steps to enable Remote Desktop Services and open the port.

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

    powershell
  5. Run the following commands to enable Remote Desktop Services and add a firewall rule to allow connections.

    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
  6. Connect to the Windows instance from your local client using Remote Desktop and verify that you can log on.

    For detailed steps, see Connect to a Windows instance using a username and password.

References