Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

RDS Session Host only role & license configuration

$
0
0

I needed a couple of servers to act as 'jump boxes' to networks with special hosts. So we needed the capability for 5 or 6 people at a time to RDP to a jump box and from there they can connect to the special hosts. As such, it appears that the only role needed is RDS Session Host (2012 R2). I have a license server setup on another server. The perplexing part is the licensing configuration. I don't know what went wrong in development, but wow, what a mess - badly documented situation and no wizard to handle something that should be so simple. So after searching and trolling forums I found a blog post that mentions manual configuration of the RDS licensing mode and server list via Powershell.

I created this small script to help anyone else that runs into this situation, but I'm not entirely sure that this is all that is needed. Can anyone confirm that it is or do I need to do more than this?

<#
Note The following commands must be ran from an Administrative
PowerShell prompt on the RDS Host to be configured.

To configure the license server on RDSH/RDVH:
#>

$Mode = 4 #Value can be 2 - per Device, 4 - Per user
$LicensingServer = "licenseserver.contoso.com" #Name of the license server

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting

$obj.SetSpecifiedLicenseServerList($LicensingServer)
$obj.ChangeMode($Mode)

$obj.GetSpecifiedLicenseServerList() #displays the $LicensingServer?
$obj.LicensingType #displays $Mode + 1?



Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>