How to change the Remote Gateway Host Address and Port in RDP file for Gateway

Recently during a DR Test we wanted to change the Address on the RDP file that was being downloaded from the Remote Desktop Gateway.

Someone had put together a nicescript that can do it here :

This changed the internal server 

However the file still has the old address for RD Gateway server ( in this line : gatewayhostname:s: )

You can change this using powershell per below

Import-Module RemoteDesktop

Set-RDSessionCollectionConfiguration -CollectionName “Finance Staff RDP” -CustomRdpProperty “

Changes this your External Server

GD Star Rating
GD Star Rating

Tags: gateway, port change, port redirection, rdp file, rdp gateway, Set-RDPublishedName.ps1

Trackback from your site.