Here is what happens....
PS C:\Windows\system32> Remove-RDServer -Server "Server.forest.org" -Role "RDS-RD-SERVER" -ConnectionBroker "VDI.FOREST.ORG" -force
Object reference not set to an instance of an object.
+ CategoryInfo : InvalidResult: (:) [], NullReferenceException
+ FullyQualifiedErrorId : JobStateFailed
+ PSComputerName : localhost
What is Microsofts official response to this issue? I have this issue and its just plain annoying... i have been ignoring it but would love to get it resolved. The method that people have posted for the clean up scares me a bit.
If i just remove it from the "server manager" i cant expand the RDS tab. it says i need the server in there.
Searching around yields results all with deleting sql records manually. However someone listed that it yielded issues when trying to create a Highly Available connection broker which i plan to do in the near future.
http://social.technet.microsoft.com/Forums/windowsserver/en-US/f9320403-82db-4f15-8760-f3d42283debb/cannot-remove-rd-session-host-server-windows-server-2012?forum=winserverTS
http://www.insidetechnologies.eu/blog/articoli/WindowsServer2012RemoveManuallyServerfromRemoteDesktopServices
http://social.technet.microsoft.com/Forums/windowsserver/en-US/7664e1aa-1862-4d95-9780-1ae00e1862bf/unable-to-remove-deleted-session-hosts-from-rds2012-deployment