TechNet Wiki – Using Powershell to automate the installation and configuration of RDS

My Good Friend Freek Berson ( and an established Remote Deskop Services MVP has created a Technet Wiki Page for Configuring RDS using PowerShell. If you come across any good resources about RDS and PowerShell, feel free to add it to the WIKI Page. Happy PowerShelling!


RDS PowerShell : TFM – Part VIII : Next Steps

Wow!! Now that was too much of a PowerShell dose. However you would now start truly appreciating the “Power of PowerShell”. Having understood what you need to know about RDS PowerShell to automate it, you can start leveraging your new found knowledge to start scripting some advanced stuff. Here are some additional references. TechNet Script…


RDS PowerShell : TFM – Part VII : Using Best Practice Analyzer PowerShell Module of Remote Desktop Services

To use the Best Practice Analyzer for Remote Desktop Services, we will import the Best Practices Module for PowerShell The Get-BpaModel tells you which all Scans are available for you to run on the box. As shown in the screenshot below, we do have access to the Microsoft/Windows/TerminalServices scan since the RDS Role has been…


RDS PowerShell : TFM – Part VI : Network Load Balancing RDS Farm Members using PowerShell

To avoid problems with stale DNS cache entries, you might decide to implement NLB or Network Load Balancing. To configure NLB Cluster, we will install the NLB feature on each of the FARM members and then configure the cluster and finally add a DNS entry mapping the FARM name to the Cluster IP address. Starting…


RDS PowerShell : TFM – Part V : Configuring a RD Gateway using PowerShell

Now that we have our RDS Farm setup, let’s extend our RDS Farm over the internet by configuring the RD Gateway Role Service. We will use our PYRAMID Server as our RD Gateway Server. Using the Add-WindowsFeature, we will install the RD-Gateway Role Service. Now that we have the RD Gateway Role Installed, it’s time…


RDS PowerShell : TFM – Part IV : Configuring a RDS Farm using PowerShell

So far, we have installed two RD Session Host Servers, added some RemoteApps, configured the Session Host Servers, installed the Web Access Server, installed and configured the Connection Broker. We are all set to create a RDS Farm. I have already created the related DNS records (RDSFARM) as shown in the screenshot below: Let’s connect…


RDS PowerShell : TFM – Part III : Configuring Remote Desktop Connection Broker using PowerShell

Now that we have our two RD Session Hosts Servers (COLFAX and FUJI) and our Web Access Server (FUJI) up and running properly, let’s go ahead and install the RD Connection Broker Role on the LIBERTY Server Upon Importing the RemoteDesktopServices Module, we see that there are two top level containers We really don’t have…


RDS PowerShell : TFM – Part II : Configuring Remote Desktop Session Host Server using RDS Provider for PowerShell

If you have installed the RD Session Host Role via PowerShell, the first thing you will note is that the RD Session Host Server is set to “Don’t allow connections to this computer” and the Remote Desktop Users Group is empty. To allow connections, we will browse to the SessionSettings Container and set the value…


RDS PowerShell : TFM – Part I : Installing Remote Desktop Role Services

To install any role or feature on a Windows Server 2008 R2 Server, we will leverage the Add-WindowsFeature command of the ServerManager Module. This Command is not installed by default but we can import the ServerManager module in the current PowerShell RunSpace. To import the ServerManager module, use the following command Import-Module ServerManager To see…