How to change the Remote Gateway Address in RDP file for Gateway

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

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

https://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80

However the file still has the old address in this line : gatewayhostname:s:

You can change this using powershell per below

Import-Module RemoteDesktop

Set-RDSessionCollectionConfiguration -CollectionName “Finance Staff RDP” -CustomRdpProperty “gatewayhostname:s:rdssb.office.domain.com

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: gateway, rdp file, Set-RDPublishedName.ps1

Trackback from your site.