Remote desktop services

Remove 2012 R2 RDS Deployment

Remove 2012 R2 RDS Deployment

I have been running a 2012 R2 RDS deployment proof of concept at work for a while. Now we have a live deployment I need to remove this poc. I could just turn the server off, but if I do that at some point I’m going to need to do this for production. I searched online, but couldn’t find a decent guide, so this is what I did..

  1. Check what Collections exist (My deployment was a session deployment)

Get-RDSessionCollection -ConnectionBroker Server.Test.Lab


2. I had one collection, so I used the below to remove it

Remove-RDSessionCollection -CollectionName User-App-Collection -ConnectionBroker server.test.lab -force


3. Then I removed the RDSH Role

 Remove-RDServer -Role RDS-RD-SERVER -Server Server.Test.Lab -ConnectionBroker Server.Test.Lab -Force

4. I couldn't remove the web access and Connection Broker roles using Remote-RDServer, as they were the last instance of these roles in this deployment, So I use the below

Uninstall-WindowsFeature -ComputerName server.test.lab -Name RDS-Connection-Broker, RDS-Licensing, RDS-RD-Server, RDS-Web-Access, RDS-Licensing-UI

restart-computer -ComputerName server.test.lab -force


Which removes the roles and then reboots the server.
<!--adsense-->
comments powered by Disqus