Terminal Server Configure Broker

In this tutorial you are going to learn how to configure the Broker service on a Terminal Server. Using Broker we are able to make our Terminal Server work as a load balance, meaning that any user can open the MSTSC, login to logic word using something like “Terminal-Server” and behind of sense once the user will login to TS01 and second one to TS02, and of course his personal file will move from server to another by enabling Roaming Profile \ Folder Redirection.

  • First, install the Broker server as standalone server

This is my environment:

Environment TSBroker

As you can see I have 2 TS servers, 1 DC and 1 Broker

The first step is to add the user which will be able to login to TS, so open your TS server and add members to “Remote Desktop Users” group all members you want to allow login.

Remote Desktop Users

  • Make sure the firewall is disabled on all your TS servers.
  • Open Group Policy Management and create a new Policy.
  • You have enabled the following policies:
  • Computer Configuration > Administrative Templates > Windows Components >Remote Desktop Services :Group Policy Broker
  • Open “Configure RD Connection Broker Farm 
  •  Name Policy and specify Farm name you wantFarmTS
  • Select “Configure RD Connection Broker Server name policy” and type broker server name:Terminal Server Configure Broker
  • The last policy is to Enable “Use RD Connection Broker load balancing”

Terminal Server Configure Broker

Now we have to make sure “Round Robin” is enabled in our DNS, so open your DNS Server and right Click on your DNS name: ( made by default )

Terminal Server Configure Broker

After that we have to create a record for our termite server. We have specified the name “FarmTerminal” in my case but all IPs will be different:

Terminal Server Configure Broker

Terminal Server Configure Broker

Both of them:

Terminal Server Configure Broker

Now we need to open Broker server (New one) and add terminal server computer to “Session Broker Computers” local group:

Terminal Server Configure Broker

  • Now we have run on all server gpupdate /force.

Open Broker server and double click on “Member of farm RD connection broker”

Terminal Server Configure Broker

Click on “Change Settings”

Terminal Server Configure Broker

And check “Farm member”:

Terminal Server Configure Broker

Allow the adapter “V”:

Terminal Server Configure Broker

Now what we have to do is to check it  > open MSTSC and type FARM name “Farmnetsystem”:

Terminal Server Configure Broker

 First and second login attempt :

FirstternialServer1


Server name


Second attempt with same userFirstternialServer2.png


ServerName2.png

That’s all. The client query DNS is “Farmnetsystem,

The DNS server provides back to the user the IPs The Broker is checking and according to Load Balancer (Sessions) which server is vacant for a user. If a user already had session on TS01 and he tries to log in again to the server it receives the request to returns him to the same session.