Installing the Remote Desktop Session Host role service on Windows Server without the Connection Broker role service

Gælder for: Windows Server, version 1903Windows Server 2019, all versionsWindows Server 2016 Datacenter

Summary


This article provides guidelines to install and configure the Remote Desktop Session Host role service on a computer that is running Windows Server 2019, Windows Server 2016, or Windows Server 2012 without the Remote Desktop Connection Broker role service installed.

When you create a standard deployment of Remote Desktop Services, the Remote Desktop Connection Broker role service provides access to the complete functionality of Remote Desktop Services. A configuration that does not use the RD Connection Broker role service provides desktop sessions to users based on the number of Remote Desktop Services client access licenses (RDS CALs) that are installed on the server. Such a configuration does not provide access to RemoteApp programs or the RDWeb website. Because a configuration without the RD Connection Broker role service does not provide access to all RDS functionality, you should use such a configuration only if there is no other option.

You can use the instructions in this article to configure RDS service by using a single server (either a member of a workgroup or a domain controller (DC)). If you have a separate DC, we recommend that you use the Standard Remote Desktop Services deployment wizard.

For more information about the RDS roles, see Remote Desktop Services roles.

More information


The process of deploying RDS service roles on a single workgroup server or DC differs from that of deploying a standard RDS configuration on multiple computers.

Unless otherwise noted, these steps apply to both workgroup computer and DC cases.

  1. On the workgroup computer or DC, install the Remote Desktop Licensing role service and the Remote Desktop Session Host role service. To do this, follow these steps:
    1. Open Server Manager.
    2. Click Manage and select Add Roles and Features.
    3. Select Role-based or Feature-based installation.
    4. Select the computer as the destination server.
    5. On the Select server roles page, select Remote Desktop Services.
    6. On the Select role services page, select the Remote Desktop Licensing and Remote Desktop Session Host role services.
    7. Continue the installation. Select default values for the remaining settings.
  2. DC step: Open Remote Desktop Licensing Manager, right-click the server, and then select Review Configuration.
  3. Select Add to group.
  4. Restart the Remote Desktop Services service.
  5. Use one of the following methods to activate the RDS license server:
  6. Install the appropriate RDS CALs.
  7. Add the users that you want to allow to connect to the Remote Desktop Users group. To do this, use the following tools:
    • To find the Remote Desktop Users group on a DC, open Active Directory Users and Computers and navigate to the Builtin container.
    • To find the Remote Desktop Users group on a workgroup server, open Computer Management and then navigate to Local Users and Groups\Groups.
  8. Change the local policy of the computer to add your remote desktop users to the Allow logon through Remote Desktop Services local policy object. To do this, follow these steps:
    1. Open Local Security Policy.
    2. Navigate to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment.
    3. Double-click Allow log on through Remote Desktop Services and then select Add User or Group.
    4. Type Remote Desktop Users (or the user names of each user account that you want to add, separated by semicolons), and then select OK two times.
  9. Configure the Remote Desktop Session Host role service to use the local RDS license server.
    To do this, follow these steps:
    1. Open an elevated Windows PowerShell Command Prompt window.
    2. Run the following command:
      $obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
    3. To set the licensing mode, run the following command:
      $obj.ChangeMode("<value>")
    4. Run the following command:
      $obj.SetSpecifiedLicenseServerList("<licenseservername>")
    5. To verify the settings, run the following command:
      $obj.GetSpecifiedLicenseServerList()
      You should see the RDS licensing server name in the output.
    After you finish this step, users can start remote desktop sessions by using any supported RDS client.
  10. DC step. To enable printer redirection to function correctly on a DC that is acting as the RDSH host, follow these additional steps.
    1. Open an elevated Command Prompt window.
    2. Run the following commands:
      C:\CD\Windows\system32\SpoolCacls.exe PRINTERS /e /g users:C
    3. Restart the computer.