IBM Support

Step by Step Windows 2019 Remote Desktop Services

How To


Summary

Step by Step guide for Windows 2019 Remote Desktop Services

Objective

A step by step guide to build a Windows Server 2019 Remote Desktop Services deployment.

Environment

-Windows Server 2019 ISO 

-SQL Server 2017 Express x64 

-SQL Server 2016 Native Client 

-SQL Server Management Studio 

-A certificate contain the FQDN you will use as the RD Web Access URL.

Steps

-We will need two servers to host the following roles:

image-20250722141242-1

Software used in this guide:

-Windows Server 2019 ISO (evaluation can be downloaded from MS official website)

-SQL Server 2017 Express x64 (free version can be downloaded from MS official website)

-SQL Server 2016 Native Client (free version can be downloaded from MS official website)

-SQL Server Management Studio (free, and can be downloaded from MS official website)

-A certificate contain the FQDN you will use as the RD Web Access URL (example:”rds.domainname” ). It needs to be in .pfx format and you need to have the private key in it.

1-Installing the Remote Desktop Services Roles

-Log on to the Domain Controller, and

-In Server Manager right-click the All Servers node and add the second server using the Add Servers command (or select the All Servers node, click Manage and click Add Servers).

image-20250722141242-2

-click Manage, click Add Roles & Features.

image-20250722141242-3

-Click Next

-Select Installation Type

image-20250722141242-4

-Select Remote Desktop Services installation.

-Click Next.

-Select Deployment Type

image-20250722141242-5


-Click Next.

-Select Deployment Scenario

image-20250722141242-6

-Select Session-based desktop deployment.

-Click Next.

-Review Role Services

image-20250722141242-7

-Review the services that will be installed.
-Click Next.

-Specify RD Connection Broker server

image-20250722141242-8

-Click the member server and click the Add button.
-Click Next.

-Specify RD Web Access server

-Check Install the RD Web Access role on the RD Connection Broker server.

-Click Next.

-Specify RD Session Host server

-Click the member server and click the Add button.
-Click Next.

-Confirm selections

image-20250722141242-9

-Check Restart the destination server automatically if required.
-Click Deploy.

-Wait until all role services are deployed and the member server has restarted.
Click Close.

2-In Server Manager click Remote Desktop Services and scroll down to the overview.

image-20250722141242-10

-The deployment is missing an RD Gateway server and a RD Licensing server.

image-20250722141242-11

-Click the Add RD Licensing server button.

-Select a server

image-20250722141242-12

-Click the domain controller and click the Add button.
-Click Next.

-Confirm selections

-Click Add.

-View progress

-Wait until the role service is deployed. No restart is needed.
Click Close.

image-20250722141242-13

-Click the Add RD Gateway server button.

-Select a server

image-20250722141242-14

-Click the member server and click the Add button.
-Click Next.

-Name the self-signed SSL certificate

image-20250722141242-15

-The wizard creates a self-signed certificate. (Later we will replace the self-signed certificate.)

-Enter the external Fully Qualified Domain Name which you will also use for the Web Access URL.
-Click Next.

-Confirm selections

image-20250722141242-16

-Click Add.

-Wait until the role service is deployed. Again, no restart is needed.

-Click Close.

-Change the internal FQDN for the Connection Broker to an external FQDN.

-Click OK

-Changing the Connection Broker FQDN to an externally resolvable FQDN

-Open DNS Manager on the domain controller and browse to Forward Lookup Zones.

image-20250722141242-17

-Right click Forward Lookup Zones and click New Zone… Go through this wizard accepting the defaults until you enter a Zone Name.

image-20250722141242-18

-Enter the external FQDN which will also be used by the Connection Broker.

-Finish the rest of the wizard accepting the defaults.

-Browse to the newly created zone.

image-20250722141242-19

-Right click the newly created zone and click New Host (A or AAAA)…

-Right click the newly created zone and click New Host (A or AAAA)…

-Leave the Name field blank, but enter the member server’s (holding the RD Connection Broker role) IPv4 address.
-Click Add Host.

-Now the configuration will be able to resolve “rds.domainname” to the server holding the Connection Broker role, and this will work because “rds.domainname” is also on the certificate that we will configure later.

-Create a new Global Security Group called “RD Connection Brokers” and add the computer account for the member server to it as a group member.

-Reboot the member server.

3-Install SQL Express on the Domain Controller (or use an existing SQL Server if you already have one).

-Here’s a list of needed features:

image-20250722141242-20

image-20250722141242-21

-Use the Default Instance (so click Default, and do not leave the wizard’s selection on Named instance: SQLEXPRESS).

image-20250722141242-22

-Set the SQL Service to start using SYSTEM because the default account of SQLSERVER cannot be used on a Domain Controller.

-When the installation is done, open SQL Configuration manager and browse to Client Protocols under SQL Native Client 11.0 Configuration.

image-20250722141242-23

-Check if TCP/IP is enabled under Client Protocols. SQL Express install enables this by default.

-Browse to Protocols for MSSQLSERVER under SQL Server Network Configuration.

image-20250722141242-24

-Enable TCP/IP. If this is a new SQL installation, this will be disabled by default.
(Restart the SQL Server service if you changed this setting.)

-On the SQL Server, make sure port 1433 is not being blocked by Windows Firewall.

image-20250722141242-25

-Open SQL Server Management Studio, connect to the default instance on the Domain Controller and browse to Logins under Security.

image-20250722141242-26

-Right click Logins and click New Login…

Login – New

image-20250722141242-27

-Click Search, Select User, Service Account, or Group

image-20250722141242-28

-Click Object Types… and select Group.
-Type the RDS Connection Brokers security group name and click Check Names.
-Click OK.

-Login – New

image-20250722141242-29

-Click Server Roles and select dbcreator.
-Click OK.

-Install the SQL Native Client on the member server (Client Components only). (If you used the member server in this setup to install the SQL Management Studio, you can skip this step)

4-In Server Manager click Remote Desktop Services and scroll down to the overview.

image-20250722141242-30 

-Right click RD Connection Broker and click Configure High Availability.

Before you begin

image-20250722141242-31

-Note:If you have more than one RD Connection Broker, they need to be configured using DNS Round Robin.

-Click Next.

-Configure RD Connection Broker for High Availability

image-20250722141242-32

-Click Next.

-Configure RD Connection Broker for High Availability

image-20250722141242-33

-DNS name for the RD Connection Broker cluster:
The DNS Zone name we configured in DNS earlier: rds.domainname

-Connection string:
DRIVER=SQL Server Native Client 11.0;SERVER=DOMAINNAME;Trusted_Connection=Yes;APP=Remote Desktop Services Connection Broker;DATABASE=ITWRDCB

-Folder to store database files:
C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA

-Click Next.

-Confirmation

image-20250722141242-34

-The RD Connection Broker is now in High Availability Mode, and configured as “rds.domainname” and ready to complete the configuration.

5-Configuring Certificates

image-20250722141242-35

-In Server Manager, Remote Desktop Services, Overview, click Tasks and click Edit Deployment Properties, then click Certificates.

image-20250722141242-36

-Configure the deployment

image-20250722141242-37

-Click RD Connection Broker – Enable Single Sign On and click Select Existing certificate.

image-20250722141242-38 

-Browse to the .pfx file, enter its password, and check Allow the certificate.
-Click OK.

image-20250722141242-39

-Click Apply.

-Configure the deployment

image-20250722141242-40

-Click RD Connection Broker – Publishing and click Select Existing certificate.

-Click RD Web Access and click Select Existing certificate.

image-20250722141242-41

-Last one. Click RD Gateway and click Select Existing certificate.

-Browse to the .pfx file, enter its password, and check Allow the certificate..
Click OK.

-Click OK to apply the final certificate step.

6-Publishing resources to your users

-You can use this setup to either provide full desktop sessions on the Session Host, or you can choose to publish only applications on the Session Host.

Example: publish full desktop sessions.

image-20250722141242-42

-In Server Manager, Remote Desktop Services, Session Collections, click Tasks and click Create Session Collection.

image-20250722141242-43

-Review the requirements.
-Click Next.

-Name the collection

image-20250722141242-44

-Enter a descriptive name. This name will be displayed under its icon in the Web Access interface.
-Click Next.

-Specify RD Session Host servers

image-20250722141242-45

-Click the member server and click the Add button.
-Click Next.

Specify user groups

image-20250722141242-46


-Click Next.

-Specify user profile disks

image-20250722141242-47

-Click Next.

-Confirm selections

image-20250722141242-48

-Review the information and click Create.

-View Progress

image-20250722141242-49

-Wait until the collection is created and the server is added to the collection.
-Click Close.

7-Testing the setup

On a machine that has access to the setup, open https://rds.domainname/rdweb

image-20250722141242-50


-Enter a valid username and password (Domain \username or username@Domainname).
-Create a user for this or simply use the domain admin account.
-Click Sign in.

image-20250722141242-51

-After logging in you are presented with the full desktop session collection we created.

image-20250722141242-52

-After clicking the Full Desktop icon, you get the warning that devices are going to be redirected.

- click Connect

image-20250722141242-53

For more information, you can search online about these topics:

-Deploy your Remote Desktop environment

-Remote Desktop Services roles

-Create a Remote Desktop Services collection for desktops and apps to run

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSTIPK","label":"Microsoft Windows"},"ARM Category":[],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":""},{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSTIPK","label":"Microsoft Windows"},"ARM Category":[{"code":"a8mKe000000004NIAQ","label":"Windows"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":""}]

Document Information

Modified date:
11 August 2025

UID

ibm17240242