Posts Tagged ‘RDS; Old server; Powershell; Server Manager;’

How to: Remove ‘old’ RDS server from farm

When you delete a old RDS Session Host server from your environment whitout first deleting the server from your RDS Farm, you’ll receive the following error:

image

Install SQL Management Studio on your RDS Connection Broker and connect to the following server name:

\\.\pipe\MICROSOFT\##WID\tsql\query

2019-02-13_16h22_03

Create a new query:

SELECT TOP 1000 [Id],[Name] FROM [RDCms].[rds].[Server]

image

Here you can see all your servers in your RDS Farm. Notice the Id of your ‘old’ server. In this example it is server ‘RDS-01’ with ID 2.

Create a new query:

use RDCms;
delete from rds.RoleRdsh where ServerID = ‘2’;

image

Start Powershell on your RDS Broker server and type:

Get-RDServer

image

Now you can open your Server Manager again and manage your RDS Farm!