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

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:\Users\administrator.SAVILLTECH> Import-Module RemoteDesktopServices
PS C:\Users\administrator.SAVILLTECH> cd rds:
PS RDS:\> cd RDVHConfiguration\LicensingSettings\RegisteredLicenseServers
PS RDS:\RDVHConfiguration\LicensingSettings\RegisteredLicenseServers> dir

Directory: RDS:\RDVHConfiguration\LicensingSettings\RegisteredLicenseServers

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

PS RDS:\RDVHConfiguration\LicensingSettings\RegisteredLicenseServers> cd ..\SpecifiedLicenseServers
PS RDS:\RDVHConfiguration\LicensingSettings\SpecifiedLicenseServers> New-Item -name savdaldc10.savilltech.net -Force

Directory: RDS:\RDVHConfiguration\LicensingSettings\SpecifiedLicenseServers

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

PS RDS:\RDVHConfiguration\LicensingSettings\SpecifiedLicenseServers> cd ..
PS RDS:\RDVHConfiguration\LicensingSettings> 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.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.