This wiki will walk you through configuring RD Licensing for RDS on Windows Server 2012 using PowerShell.

See also

(More Wiki's on the RemoteDesktop PowerShell module in Windows Server 2012: )



We can use the RemoteDesktop PowerShell module to configure licensing for the RDS environment. The command to use here is Set-RDLicenseConfiguration


Set-RDLicenseConfiguration -LicenseServer <string[]> [-Force] [-ConnectionBroker <string>] [<CommonParameters>]

Set-RDLicenseConfiguration -Mode <LicensingMode> {PerDevice | PerUser | NotConfigured} -LicenseServer <string[]>

[-Force] [-ConnectionBroker <string>] [<CommonParameters>]

Set-RDLicenseConfiguration -Mode <LicensingMode> {PerDevice | PerUser | NotConfigured} [-Force] [-ConnectionBroker

<string>] [<CommonParameters>]


For example, we can use the command below to set the licenseserver and configure it to be Per User.

set-rdlicenseconfiguration -LicenseServer LS01.CRFB.Local -Mode PerUser -ConnectionBroker SH01.CRFB.Local

Running this command will result in prompt messages for changing the license setting to user-based CALs.


Changing license settings of the Remote Desktop deployment. Do you want to continue?

[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y

If you receive an additional message like below, the server is most likely not configured with the RD Licensing role yet.

Do you want to continue?

The server(s) 'LS01.CRFB.Local' are not valid license server(s).

[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y