You have an existing Remote Desktop Services (RDS) collection comprising x number of session hosts and you need to change the hostname of any of these session hosts. This KB article provides instructions on how to change the hostname of an RDS session host server. In a separate KB article, we provide instructions on how to change the hostname of a Citrix Virtual Apps and Desktops server.
This procedure has been tested in Windows Server 2019 RDS but it would most likely work in RDs 2012 R2 onwards. The procedure is required because the RDS connection broker database (either WID or SQL Server) is not automatically updated if the RDS session host server hostname is changed outside the RDS topology.
Follow the process below for renaming an RDS Session Host server:
- Open Server Manager and add all RDS related servers, in order to be able to manage the RDS topology.
- Remove the session host server from the RDS Session Collection.
- Remove the session host server from the RDS top level topology.
- Change the hostname in the OS of the session host server in question (sysdm.cpl command) and reboot.
- Come back to the RDS Server Manager topology and add the RDS server again by its new domain name.
In case you receive an error about missing RDS deployment, following instructions at KB article https://stefanos.cloud/kb/rds-error-a-remote-desktop-services-deployment-does-not-exist-in-the-server-pool/.