Guidelines for installing the Remote Desktop Session Host role service on a computer running Windows Server without the Remote Desktop Connection Broker role service

Applies to: Windows Server 2019, all versionsWindows Server 2016 DatacenterWindows Server 2016 Standard More

Summary


This article provides the guidelines to install and configure the Remote Desktop Session Host role service on a computer that is running Windows Server 2012, Windows Server 2016, or Windows Server 2019 without the Remote Desktop Connection Broker role service installed.
 
This configuration should be used only when it is the only option. This is because the recommended configuration includes the Remote Desktop Connection Broker to provide access to the complete functionality with Remote Desktop Services. If a Domain Controller (DC) is available on a separate server, we recommend that you use the Standard Remote Desktop Services deployment wizard. This configuration is appropriate when there is only one server on the network. This server can be part of a workgroup or may be configured as a DC.

This configuration provides desktop sessions to users based on the number of Remote Desktop Services client access license (RDS CALs) installed on the server. However, it does not provide access to RemoteApp programs or the RDWeb site.
 

More Information


Consideration for installing the Remote Desktop Session Host role service on a computer running Windows Server without the Remote Desktop Connection Broker role service

The deployment of a Remote Desktop Session Host role service without the Remote Desktop Connection Broker role service adds certain requirements and considerations. Unless otherwise noted, these steps apply to both Workgroup and Domain Controller cases:
 
  1. If the system has to be configured as a Domain Controller, install the Active Directory Domain Service (AD DS) role service on the Server and promote as Domain Controller

    For more information about how to install AD DS in Windows Server 2012, go to the following Microsoft webpage:

    http://technet.microsoft.com/en-us/library/hh472162
  2. Install the Remote Desktop Licensing and the Remote Desktop Session Host role services using the following steps:
     
    • Open Server Manager.
    • Click Manage and select Add Roles and Features.
    • Select Role-based or Feature-based installation.
    • Under Remote Desktop Services, select Remote Desktop Licensing and Remote Desktop Session Host role services.
    • Continue the installation.
  3. Add the License Server to Terminal Server License Servers group, and then restart the Remote Desktop service. To do this, you have the following options:
     
    • Add the server to Terminal Server License Servers group by opening licmgr.exe and selecting the Review link.
    • Manually add the server to Terminal Server License Servers group. (On DC. this will be in Built-in groups.)
  4. Activate the License Server automatically from License Server UI (licmgr.exe).

    For more information about how to activate the Remote Desktop License server:

    http://technet.microsoft.com/en-us/library/cc771547.aspx
  5. Install appropriate RDSCALs.

    For more information about how to install RDS CALs, go to the following Microsoft webpage:
    http://technet.microsoft.com/en-us/library/cc725890.aspx
  6. If the system is a Domain Controller, add the Domain Users group (or the specific list of users) to the Allow logon through Remote Desktop Services local group policy. To change the local group policy object setting, follow these steps:
     
    1. Open GPEDIT.MSC.
    2. Expand Computer Configuration, expand Windows Settings, expand Security Settings, expand Local Policies, and then click User Rights Assignment.
    3. Double-click Allow log on through Remote Desktop Services and then click Add User or Group.
    4. Type the user account, and then click OK two times.
    5. Close the Group Policy Object Editor.
  7. Add the users you want to allow to connect to the Remote Desktop Users group. For example, add Domain Users. (On DC, this will be in Built in groups.)
  8. Configure the Remote Desktop Session Host role  to use the local Remote Desktop Licensing server. To do this, follow these steps:
     
    1. Open an elevated Windows PowerShell Command Prompt window.
    2. Type the following command on the PS prompt, and then press Enter:

      $obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
    3. Run the following command to set the licensing mode.
       
      Note Value = 2 for per device, Value = 4 for per user.

      $obj.ChangeMode(value)
    4. Run the following command to replace the machine name with License Server:

      $obj.SetSpecifiedLicenseServerList("LicServer")
    5. Run the following command to verify the settings that are configured using previous steps:

      $obj.GetSpecifiedLicenseServerList()

      You should see the server name in the output.
Users can now initiate Remote Desktop Sessions to the server from any supported RDS client.

Note If the system is a Domain Controller, an additional step must be taken to allow printer redirection to function properly. For more information, click the following article number to see the article in the Microsoft Knowledge Base:
 
968605 Terminal Server Easy Print not printing