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 :
https://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80
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 on the RDP Connection Broker
Import-Module RemoteDesktop
Set-RDSessionCollectionConfiguration -CollectionName “Finance Staff RDP” -CustomRdpProperty “gatewayhostname:s:office.domain.com:444“
Changes this your External Server