Find the RDS Licensing servers in your domain

 

During good old Windows 2003 times, the Terminal Licensing Servers were published in the Active Directory using the Sites object and the entry TS-Enterprise-License-Server as explained here.

Under WIndows 2008R2, the RDS Licensing role service registers a service connection point; however few documents tells you where to find this SCP in your AD: it is a CN called ‘TermServLicensing’ under the CN of the computer account. For example, if your server rdslic.mydomain.local is located in a top-level OU called ‘Servers’, the object will be called:

<pre class="">CN=TermServLicensing,CN=rdslic,OU=Servers,DC=mydomain,DC=local

To find out all registered SCP, you can issue one of the following commands:

<pre class="lang:batch decode:true" title="finding RDS Licensing servers using cmd">dsquery * -filter "(&(CN=TermServLicensing)(objectClass=serviceConnectionPoint))"

or

<pre class="lang:default decode:true " title="finding RDS Licensing servers using Powershell"># one of the following:
Get-ADObject -LDAPFilter "(&(CN=TermServLicensing)(objectClass=serviceConnectionPoint))"
Get-ADObject -Filter {objectClass -eq 'serviceConnectionPoint' -and Name -eq 'TermServLicensing'}