Saturday, January 31, 2015

Install-RDPCert - Remotely install RDP certificate

I have uploaded my first submission to the TechNet Script Gallery!

I'm in the middle of deploying a large RDS 2012 farm - we're currently sitting at around 80+ Session Host servers. One of the things we noticed was that when connecting to the RDS farm from external computers via RD Gateway, you receive a certificate warning because the Session Host servers utilize self-signed certificates. We wanted to eliminate these certificate warnings by purchasing a wildcard certificate and install on all of the Session Host servers. But how to go about deploying it?

Ryan Mangan, RDS MVP, had written a PowerShell script to replace the self-signed certificate with a certificate from a trusted third-party certificate authority. The problem with his script was that the script only worked on the local machine. So in my scenario, I would have to copy the script and certificate to 80+ individual servers, and run the script 80+ times. No way I'm doing that.

Instead of that, I used his script as inspiration and wrote my own version that allows you to install the the certificate remotely against multiple computers simultaneously. This allows you to install your wildcard certificate across your entire RDS farm with a single command!

Check out the script on the TechNet Script Gallery -

As always, I'm always looking for feedback, so if you have any questions or comments about the script, don't hesitate to ask!

No comments:

Post a Comment