Q. How can I set the RDS licensing server for my virtualization host from PowerShell?

John Savill

August 19, 2010

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. If you enable features like RemoteFX on your Hyper-V server, you need to configure a licensing server per the prompt that is displayed on logon. However, the normal GUI way to configure licensing isn't available because you don't have RDSH installed.

You need to use PowerShell to configure the licensing server, as shown below. Make sure the PowerShell instance is run with administrative credentials—right-click the PowerShell icon and select Run as Administrator. The last line sets the licensing to per-user (4). Per-device would be value of 2. Once you've entered these commands, you'll need to reboot the server for the change to take effect.


PS C:Usersadministrator.SAVILLTECH> Import-Module RemoteDesktopServices
 PS C:Usersadministrator.SAVILLTECH> cd rds:
 PS RDS:> cd RDVHConfigurationLicensingSettingsRegisteredLicenseServers
 PS RDS:RDVHConfigurationLicensingSettingsRegisteredLicenseServers> dir

 Directory: RDS:RDVHConfigurationLicensingSettingsRegisteredLicenseServers

 Name Type CurrentValue GP PermissibleValues PermissibleOperations
 ---- ---- ------------ -- ----------------- ---------------------
 savdaldc10.savilltech.net String - Get-Item

 PS RDS:RDVHConfigurationLicensingSettingsRegisteredLicenseServers> cd ..SpecifiedLicenseServers
 PS RDS:RDVHConfigurationLicensingSettingsSpecifiedLicenseServers> New-Item -name savdaldc10.savilltech.net -Force

 Directory: RDS:RDVHConfigurationLicensingSettingsSpecifiedLicenseServers

 Name Type CurrentValue GP PermissibleValues PermissibleOperations
 ---- ---- ------------ -- ----------------- ---------------------
 savdaldc10.savilltech.net String - Get-Item, Remove-Item

PS RDS:RDVHConfigurationLicensingSettingsSpecifiedLicenseServers> cd ..
 PS RDS:RDVHConfigurationLicensingSettings> Set-Item .LicensingType -Value 4

You can confirm licensing is working when you connect to a RemoteFX enabled VDI client. An RDS CAL (per-user or per-device) will be used, which is visible in RD Licensing Manager.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like