Setting up Remote Desktop Session Host in Windows Server 2022

Posted on 18th June 2023

Introduction

In this article, we will show you how to set up a remote desktop session host in Windows Server 2022. A remote desktop session host allows users to connect to a remote server and access their applications and data. This can be useful for businesses that have employees who need to access their work files from home or from a remote location.

Prerequisites

Before you begin, you will need to have the following:

  • A Windows Server 2022 server with the Remote Desktop Session Host role installed
  • A valid domain name
  • A static IP address

Configuring the Remote Desktop Session Host

Once you have installed the Remote Desktop Session Host role on your server, you will need to configure it. To do this, open the Remote Desktop Session Host Configuration tool from the Start menu.

In the Remote Desktop Session Host Configuration tool, click on the Connections tab. From here, you can configure the settings for each user who will be connecting to the remote desktop session host.

Click on the Add button to add a new user. In the Add User dialog box, enter the user’s name and click OK.

In the Connections tab, select the user you just added and click on the Properties button.

In the Properties dialog box, select the Remote Desktop Protocol (RDP) connection type and click OK.

In the Connections tab, select the user you just added and click on the Connect button.

In the Connect dialog box, enter the IP address of the remote server and click Connect.

You will now be connected to the remote server and can access your applications and data.

Conclusion

In this article, we have shown you how to set up a remote desktop session host in Windows Server 2022. We have also shown you how to configure the remote desktop session host and how to connect to it.

Overview

In this article, we will show you how to set up a Remote Desktop Session Host in Windows Server 2022. This will allow you to provide remote desktop access to your users, allowing them to work from anywhere.

Prerequisites

Before you begin, you will need the following:

  • A Windows Server 2022 machine with RDSH role installed

Installing the RDSH Role

First, we need to install the RDSH role on our server. To do this, open the Server Manager and click on “Add Roles and Features”.

On the “Before you begin” page, click “Next”.

On the “Installation Type” page, select “Role-based or feature-based installation” and click “Next”.

On the “Server Selection” page, select the server you want to install the role on and click “Next”.

On the “Server Roles” page, check the box next to “Remote Desktop Services” and click “Next”.

On the “Features” page, click “Next”.

On the “Remote Desktop Services” page, click “Next”.

On the “Confirm Installation Selections” page, click “Install”.

Once the installation is complete, click “Close”.

Configuring the RDSH Role

Now that the RDSH role is installed, we need to configure it. To do this, open the “Remote Desktop Services” page in the Server Manager.

On the “Overview” page, click “Edit Deployment Properties”.

In the “Deployment Properties” window, go to the “Connection Method” tab.

In the “Connection Method” drop-down, select “Direct”.

Click “OK”.

Creating a User Group

Next, we need to create a user group for our RDSH users. To do this, open the “Local Users and Groups” page in the Server Manager.

In the left-hand pane, click on “Groups”.

In the right-hand pane, click “New Group”.

In the “New Group” window, enter a name for the group and click “OK”.

Adding Users to the Group

Now that we have created a group, we need to add our RDSH users to it. To do this, open the “Local Users and Groups” page in the Server Manager.

In the left-hand pane, click on “Users”.

In the right-hand pane, double-click on the user you want to add to the group.

In the “Properties” window, go to the “Member Of” tab.

Click “Add”.

In the “Select Groups” window, enter the name of the group and click “OK”.

Click “OK”.

Repeat this process for each user you want to add to the group.

Configuring the RDSH Server

Now that we have our user group set up, we need to configure our RDSH server. To do this, open the “Remote Desktop Services” page in the Server Manager.

On the “Overview” page, click “Edit Deployment Properties”.

In the “Deployment Properties” window, go to the “Connection Method” tab.

In the “Connection Method” drop-down, select “Direct”.

Click “OK”.

Testing the Connection

Now that our RDSH server is configured, we can test the connection. To do this, open the “Remote Desktop Connection” application on your client machine.

Enter the IP address or hostname of your RDSH server and click “Connect”.

Enter your credentials and click “OK”.

You should now be connected to your RDSH server.

In order to set up a Remote Desktop Session Host in Windows Server 2022, you will need to first install the Remote Desktop Services role. To do this, open the Server Manager and select ‘Manage’ > ‘Add Roles and Features’. On the ‘Before you begin’ page, click ‘Next’. On the ‘Installation Type’ page, select ‘Role-based or feature-based installation’ and click ‘Next’. On the ‘Server Selection’ page, ensure that the correct server is selected and click ‘Next’. On the ‘Server Roles’ page, check the box next to ‘Remote Desktop Services’ and click ‘Next’. On the ‘Features’ page, click ‘Next’. On the ‘Remote Desktop Services’ page, click ‘Next’. On the ‘Web Server (IIS)’ page, click ‘Next’. On the ‘Confirm installation selections’ page, click ‘Install’. Once the installation is complete, click ‘Close’.

Next, you will need to configure the Remote Desktop Session Host. To do this, open the Server Manager and select ‘Remote Desktop Services’ > ‘Overview’. On the ‘Overview’ page, click ‘Tasks’ > ‘Edit Deployment Properties’. On the ‘Deployment Properties’ page, select the ‘Certificates’ tab. In the ‘Certificates for RD Session Host Servers’ section, click ‘Select an existing certificate’, select a certificate, and click ‘OK’. In the ‘Security layer for RD Session Host servers’ section, select ‘RDP’ from the drop-down menu and click ‘OK’.

Next, you will need to create a Remote Desktop Services collection. To do this, open the Server Manager and select ‘Remote Desktop Services’ > ‘Collections’. On the ‘Collections’ page, click ‘Tasks’ > ‘Create Session Collection’. On the ‘Create Session Collection’ page, enter a name for the collection and click ‘Next’. On the ‘Select Users’ page, click ‘Add Users’, select the users who will have access to the collection, and click ‘OK’. On the ‘Specify Settings for Users Connecting to This Collection’ page, select the desired settings and click ‘Next’. On the ‘Select RD Session Host Servers’ page, click ‘Add Servers’, select the servers that will be part of the collection, and click ‘OK’. On the ‘Specify Settings for RD Session Host Servers’ page, select the desired settings and click ‘Next’. On the ‘Specify Licensing Mode and License Servers’ page, select the desired settings and click ‘Next’. On the ‘Confirm Selections’ page, click ‘Create’. Once the collection has been created, click ‘Close’.

Finally, you will need to add the Remote Desktop Session Host servers to the collection. To do this, open the Server Manager and select ‘Remote Desktop Services’ > ‘Collections’. On the ‘Collections’ page, click ‘Tasks’ > ‘Edit Properties’. On the ‘Edit Properties’ page, select the ‘Servers’ tab. In the ‘Servers in this Deployment’ section, click ‘Add Servers’, select the servers that you want to add to the collection, and click ‘OK’. In the ‘Specify Settings for Servers in This Deployment’ section, select the desired settings and click ‘OK’.