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

Advertisment to support michlstechblog.info

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

Leave a Reply to kashif Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.