{"id":3404,"date":"2015-12-13T22:59:51","date_gmt":"2015-12-13T21:59:51","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=3404"},"modified":"2016-05-11T11:04:41","modified_gmt":"2016-05-11T09:04:41","slug":"windows-find-all-terminalremote-desktop-server-licenseserver","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-find-all-terminalremote-desktop-server-licenseserver\/","title":{"rendered":"Windows: Find all Terminal\/Remote Desktop Server Licenseserver"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_3404 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_3404')){$('.twoclick_social_bookmarks_post_3404').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Find%20all%20Terminal%2FRemote%20Desktop%20Server%20Licenseserver\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20determine%20which%20Server%20provides%20the%20Terminal%20License%20Server%20Role%20in%20your%20Active%20Directory%20Forest%20use%20the%20following%20powershell%20script.%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-find-all-terminalremote-desktop-server-licenseserver\\\/\",\"post_id\":3404,\"post_title_referrer_track\":\"Windows%3A+Find+all+Terminal%2FRemote+Desktop+Server+Licenseserver\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to determine which Server provides the Terminal License Server Role in your Active Directory Forest use the following powershell script.<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\n# Get the Configuration DN of your domain\r\n$sConfiguration = (&#x5B;adsi]&quot;LDAP:\/\/rootdse&quot;).ConfigurationNamingContext\r\n# Get ADSI object\r\n$oDSE = &#x5B;adsi]&quot;LDAP:\/\/$sConfiguration&quot;\r\n# And looking for commen name TS-Enterprise-License-Server\r\n$oSearcher=New-Object DirectoryServices.DirectorySearcher ($oDSE,&quot;CN=TS-Enterprise-License-Server&quot;)\r\n$aLicenseServer=$oSearcher.FindAll() \r\n# Print all\r\n$aLicenseServer|%{$_.Properties.siteserver}\r\n<\/pre>\n<p>Michael<\/p>\n<p>See <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/de-DE\/5c9fda51-301b-4efd-90c6-797b79f6f9f6\/how-to-find-all-the-terminal-licensing-servers-in-your-domain?forum=winservergen\" title=\"Microsoft Social\" target=\"_blank\">also<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to determine which Server provides the Terminal License Server Role in your Active Directory Forest use the following powershell script.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[95,782,250,779,133,780,778,781,20],"class_list":["post-3404","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","category-windowsscripts","tag-active-directory","tag-configurationnamingcontext","tag-find","tag-license-server","tag-powershell","tag-role","tag-terminal-server","tag-ts-enterprise-license-server","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=3404"}],"version-history":[{"count":4,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3404\/revisions"}],"predecessor-version":[{"id":3725,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3404\/revisions\/3725"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=3404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=3404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=3404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}