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

Add a comment »One comment to this article

  1. it did the trick . thanks

    Reply

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress