Q. How can I set the RDS licensing server for my virtualization host from PowerShell?Q. How can I set the RDS licensing server for my virtualization host from PowerShell?
August 19, 2010
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
You May Also Like