I have Windows Server 2012 Remote Desktop services platform. I have connection broker and session host roles are running on different servers. I am trying to remove an session host server and cannot do it using Server Manager or Power shell command.
On Server manager, I am trying to remove the session host server at collections/Host Servers. I get this message:
Could not remove the configuration.
Object reference not set to an instance of an object.
On Powershell I get this messge.
PS C:\Windows\system32> Remove-RDServer -Server hq-rdsserver -Role RDS-RD-SERVER -Force
Remove-RDServer : The servers are not joined to the deployment as RD Session Host server.
The following servers did not validate successfully.
HQ-RDSSERVER
At line:1 char:1
+ Remove-RDServer -Server hq-rdsserver -Role RDS-RD-SERVER -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Remove-RDServer
Anybody any clues?
Anand