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: http://social.technet.microsoft.com/wiki/contents/articles/12835.using-powershell-to-install-configure-and-maintain-rds-in-windows-server-2012-en-us.aspx )

 

Syntax

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

SYNTAX

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>]

Example

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 a prompt messages for changing the license setting to user-based CALs.

Confirm

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

------------------

Reference