Windows: Find all Terminal/Remote Desktop Server Licenseserver

Hi,

to determine which Server provides the Terminal License Server Role in your Active Directory Forest use the following powershell script.

# Get the Configuration DN of your domain
$sConfiguration = ([adsi]"LDAP://rootdse").ConfigurationNamingContext
# Get ADSI object
$oDSE = [adsi]"LDAP://$sConfiguration"
# And looking for commen name TS-Enterprise-License-Server
$oSearcher=New-Object DirectoryServices.DirectorySearcher ($oDSE,"CN=TS-Enterprise-License-Server")
$aLicenseServer=$oSearcher.FindAll() 
# Print all
$aLicenseServer|%{$_.Properties.siteserver}

Michael

See also

One thought on “Windows: Find all Terminal/Remote Desktop Server Licenseserver”

Leave a Reply