Force the RDS server to use the custom rdp port

Lazher YAAKOUBI 191 Reputation points
2021-07-22T11:06:06.693+00:00

Hi,

recently I changed the RDP port in my RDS SERVERS environment and everything is fine, but when I create a new collection with a specific program to publish the default RDP PRT it is 3389, the new port is not applied.

please how I can resolve this.

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
{count} votes

Accepted answer
  1. Jenny Yan-MSFT 9,356 Reputation points
    2021-07-23T01:51:56.167+00:00

    Hi,

    You may try with the command (admin privilege):
    Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection –CustomRdpProperty "server port:i:xxxxx"

    Or manually check the registry key related:
    local machine\software\microsoft\windows n t\currentversion\terminal server\centralpublishedresources\publishedfarms\QuickSessionCollection\Deploymentsetting

    But if there is external network and rd gateway involved, please also check the method stated of "Change Remote Desktop Gateway Port" in third link below.

    Reference links:
    How to change default RemoteApp port
    http://tech-trainer.info/how-to-change-default-remoteapp-port/
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/a5baad5f-bad2-4713-a5d1-a7da0be3d9ee/change-rdweb-application-port-in-winserver-2012?forum=winserverTS
    https://kommelsson.wordpress.com/2016/04/20/change-remote-desktop-gateway-port-and-remote-web-app-port/

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.


    If the Answer is helpful, please click Accept Answer and upvote it.

    Thanks,
    Jenny


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.