PowerShell | Be What's Automated .. ™

Manoj Nair's technical blog covering topics such as PowerShell,Exchange Server,Virtualization, Windows Server and related Microsoft Technologies

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

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

  • Comments 2
  • Likes

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

clip_image002[4]

clip_image003[4]

Upon Importing the RemoteDesktopServices Module, we see that there are two top level containers

clip_image005[4]

We really don’t have to bother with the RDSFarms container. It will auto populated when we have configured the RDS Farm using the ConnectionBroker Container.

Let’s take a peek at the contents of the ConnectionBroker.

clip_image007[7]

We will first configure certificates for digital signature settings. We will use the same SAN certificate we used for our RD Session Host and RD Web Access

clip_image009[5]

Once we have the Thumbprint available, let’s assign it to the Connection Broker server by navigating to the Digital Signature Settings as shown below:

clip_image011[5]

clip_image012[5]

Next, we will populate our TS Web Access Computers Group by adding FUJI to it and the Session Broker Computers Group by adding FUJI and COLFAX (Our Session Host Servers) to it.

clip_image014[5]

With Web Access Group Populated, let’s proceed with the population of the Session Broker Computers Group.

Here, we will again use the Microsoft.TerminalServices.PSEngine.UserGroupHelper Runtime.

clip_image016[5]

Next, let’s populate the RemoteApp Sources by browsing to the RemoteAppSources Container and adding our session host computers there.

clip_image018[5]

Note that while adding the RemoteApp Sources we just gave the NetBIOS names of the Session Host Computers (unlike the way we specified earlier with the @ symbol). I know its strange and you might be tempted to use the FUJI@POWERSHELL way to add a computer account but this might result in an error.

So while adding RemoteApp Sources, just follow the syntax below:

New-Item –Name <NetBIOS name of the Session Host Server>

clip_image020[5]

To give our RDS a more personal look, let’s change the display name by setting the string value of the DisplayName setting within the ConnectionBroker Container as shown below:

clip_image022[5]

clip_image023[5]

In a similar way, we can configure the other settings like RD Virtualization Hosts etc. using the ConnectionBroker Container.

Comments
  • Is it possible to query the Connection Broker for the users that are active on the RDSH servers?

  • Hi Dennis,

    Run "query user" or "quser" without quotes to "Display information about the users connected to an RD Session Host server."

    Regards,

    Manoj

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment