GET IN TOUCH: (213) 537 - 3054
610 S. Broadway Suite 1001 Los Angeles, CA 90014

Remote Desktop  •  Knowledge Base

Remote Desktop Session Host Configuration

Follow these steps to configure Remote Desktop licensing on Windows Server and apply the policy through PowerShell.

Applies toWindows Server 2016, 2019, 2022
Primary toolsGroup Policy and PowerShell
Final commandgpupdate /force

Guide

Configure the licensing settings

Complete the steps below in order. The screenshots can be opened at full size, and the final policy update confirms that the Remote Desktop Session Host configuration has completed successfully.

  1. 1

    Open the Local Group Policy Editor

    Press Win + R and enter gpedit.msc to open the Local Group Policy Editor.

    Run box with gpedit.msc entered
    Open the Group Policy Editor from the Run dialog.
  2. 2

    Open the Remote Desktop licensing policy

    Select Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host, and double-click Licensing from the right pane.

    Remote Desktop Session Host Licensing policy
    Open the Licensing policy under Remote Desktop Session Host.
  3. 3

    Select the license servers policy

    Locate and double-click Use the specified Remote Desktop license servers.

    Use the specified Remote Desktop license servers policy
    Open the policy used to specify the license servers.
  4. 4

    Enter the license server address

    Tick Enabled. Enter the server IP address in License servers to use. Then click Apply > OK.

    Configure the Remote Desktop license server
    Enable the policy and enter the license server IP address.
  5. 5

    Set the licensing mode

    Return to the Licensing setting and click Set the Remote Desktop licensing mode.

    Set the Remote Desktop licensing mode policy
    Open the licensing mode policy.
  6. 6

    Choose per-user or per-device licensing

    Tick Enabled. Under Options, select Per User/Per device according to your operating system. Then click Apply > OK.

    Specify the Remote Desktop licensing mode
    Choose the licensing mode that matches the server environment.
  7. 7

    Open PowerShell as administrator

    Close all open windows, search for PowerShell in the Start menu, and select Run as administrator.

    Run PowerShell from the Windows search
    Open an elevated PowerShell window.
  8. 8

    Apply the policy update

    Enter the command below. The Remote Desktop Session Host configuration completes when you see the message Computer Policy update has completed successfully.

    PowerShell command
    gpupdate /force
    PowerShell policy update completed successfully
    Confirm that the computer policy update completed successfully.
TSC partner N-able partner