How To: Server 2012 R2 Change Default RemoteApp Port for Web Deployments

Working on a RemoteApp configuration and I needed to change the default port (3389) that the RDWeb deployment file uses.  In Server 2008 there was an easy to use GUI that let you configure the name, port, and icon of RemoteApps.  That GUI is no longer available in Server 2012!  Not to fear, I found this nifty little PowerShell that allows you to set the port used on files that are downloaded by users at the “/RDWeb” RemoteApp web portal.

You will need to know the Collection Name for the RemoteApp session collection you are trying to edit.  Use the PowerShell command below and just replace “[[Your Collection Name]]” with your collection name, (QuickSessionCollection is the default name created by the “Quick” option during RemoteApp configuration).  Replace the “[[Your Port Here]]” with the port number you would like the RDWeb to use when giving users the .RDP file for their RemoteApp connection.

Set-RDSessionCollectionConfiguration –CollectionName [[Your Collection Name Here]] –CustomRdpProperty “server port:i:[[Your Port Here]]”


9 thoughts on “How To: Server 2012 R2 Change Default RemoteApp Port for Web Deployments

  1. Garrett, fantastic tip… I’m been looking for this for quite a while. However, I’m still having an issue. This seems to work internally but when I try to launch the RemoteApp from an external source I get the standard can not connect dialog…

    I can connect using the RDP client via but RemoteApps won’t connect.

    Any thoughts?

    Thanks Rob

  2. Paul Scott

    I spent three days trying to figure out why my 5 minute easy deploy of rds wouldn’t work. I was able to web in and see my collection of apps but I could not open them. We use a non standard rdp port for extra security. Thanks so much for your ps command. It worked immediately.My remote apps open just fine now as they should.

  3. Gary


    How do I change the default port so newly created collections automatically have the unique port number?


    1. Hello Antonio,

      Not sure about doing this through the GUI as of today. I know the GUI has been limited in development and features, as the focus is more on PowerShell. Do you not have access to PowerShell on the server?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s