Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Change the Default Port of Windows Remote Desktop (RDP)

In this article, we will discuss how to change the default port of the Windows Remote Desktop (RDP) service. This is an important topic for Windows users who want to enhance the security of their remote desktop connections by using a non-standard port. By changing the default port, you can reduce the risk of unauthorized access and potential brute-force attacks.

Examples:

  1. Changing the RDP port using the Registry Editor:

    • Press Win + R to open the Run dialog box.
    • Type regedit and press Enter to open the Registry Editor.
    • Navigate to the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
    • Find the PortNumber entry and double-click on it.
    • Select the Decimal option and enter the desired port number (e.g., 50000).
    • Click OK and close the Registry Editor.
    • Restart the computer for the changes to take effect.
  2. Changing the RDP port using PowerShell:

    • Open PowerShell with administrative privileges.
    • Run the following command to change the RDP port:
      Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name "PortNumber" -Value 50000
    • Replace 50000 with the desired port number.
    • Restart the computer for the changes to take effect.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.