Setting License Server via PowerShell
- 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
Setting License Server via PowerShell
- Updated on 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
In some situations, you may be unable to set the license server correctly within Remote Desktop Session Host.
In these cases, you are able to override the configurations using PowerShell.
An example of the commands you would use, to set the License Server to "licenseserver.ad.local", is included below. Where of course "licenseserver.ad.local" can be replaced with the hostname/computer name related to your license server.
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj. SetSpecifiedLicenseServerList("licenseserver.ad.local")
Was this article helpful?