RDS remoteApp, change RDweb name (clientaccessname)

Consider a RDS remoteapp deployment on 2016 or 2012 R2 platform, running RDS GW, connection broker and hosts roles. Certificate is a wildcard cert, and split DNS is implemented.

In order to resolve the naming mismatch warning when connection remote, we can carry out the following config change:

Download the set-publishedname.ps1 script from https://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80

From an elevated Powershell, run

.\Set-RDPublishedName.ps1 -clientaccessname my.publicfqdn.com -connectionbroker my.localfqdn.local

Then in RD GatewayManager, add the public servername in the locally stored computer group “RDG_RDCBComputers” by right-clicking on resource authorization policies, select properties and network resources.

Update 10.16.2022: The technet gallery script seems to be gone, but here is another variant from a github repository that works for me:


Update 10.10.2023: I can confirm this to be working also on Windows server 2022 😊

More articles

Optional features

Check available optional features: DISM /Online /Get-Capabilities Install an optional feature: DISM /Online /Add-capability /capabilityname:Media.MediaFeaturePack~~~~

Read More »

AD retention period

Check AD retention tombstone value: Import-Module ActiveDirectory $ADForestconfigurationNamingContext = (Get-ADRootDSE).configurationNamingContext $DirectoryServicesConfigPartition = Get-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,$ADForestconfigurationNamingContext” -Partition $ADForestconfigurationNamingContext -Properties *

Read More »