{"id":2296,"date":"2022-08-15T10:31:37","date_gmt":"2022-08-15T08:31:37","guid":{"rendered":"https:\/\/itsimple.info\/?p=2296"},"modified":"2022-08-15T10:34:51","modified_gmt":"2022-08-15T08:34:51","slug":"how-to-check-and-set-windows-terminal-services-license-server","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2296","title":{"rendered":"How to Check and Set Windows terminal Services License Server"},"content":{"rendered":"\n<p>When setting Windows terminal server you need to set license server, which can be any windows server with the role license service install on it. <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"379\" data-id=\"2297\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDPlicensingServiceRole.png\" alt=\"\" class=\"wp-image-2297\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDPlicensingServiceRole.png 579w, https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDPlicensingServiceRole-300x196.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Or through powershell :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Install-WindowsFeature RDS-Licensing \u2013IncludeAllSubFeature -IncludeManagementTool<\/pre>\n\n\n\n<p>Yet even after add this server to the deployment setting :<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"320\" data-id=\"2300\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDP-set-license_server-1.jpg\" alt=\"\" class=\"wp-image-2300\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDP-set-license_server-1.jpg 617w, https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/RDP-set-license_server-1-300x156.jpg 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>you can still get error about missing license server on the terminal preventing user logging on . To set this through Powershell do this steps, to check configured license server: :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$obj = gwmi -namespace \"Root\/CIMV2\/TerminalServices\" Win32_TerminalServiceSetting\n$obj.GetSpecifiedLicenseServerList()<\/pre>\n\n\n\n<p>To set the license server, use this powershell script <strong><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/Set_RDSLicenseServer.zip\" data-type=\"URL\" data-id=\"https:\/\/itsimple.info\/wp-content\/uploads\/2022\/08\/Set_RDSLicenseServer.zip\">(Download here)<\/a><\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Specify the RDS licensing type: 2 - Per Device CAL, 4 - Per User CAL\n$RDSCALMode = Read-Host -Prompt \"enter license mode: 2 - Per Device CAL, 4 - Per User CAL\" \n# RDS Licensing host name (FQDN)\n$RDSlicServer = Read-Host -Prompt \"enter RDS license server name (FQDN):\"\n# Set the server name and type of licensing in the registry\nNew-Item \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\TermService\\Parameters\\LicenseServers\"\nNew-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\TermService\\Parameters\\LicenseServers\" -Name SpecifiedLicenseServers -Value $RDSlicServer -PropertyType \"MultiString\"\nSet-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\RCM\\Licensing Core\\\" -Name \"LicensingMode\" -Value $RDSCALMode<\/pre>\n\n\n\n<figure class=\"wp-block-pullquote has-vivid-green-cyan-color has-text-color\"><blockquote><p>Good Luck<\/p><\/blockquote><\/figure>\n\n\n","protected":false},"excerpt":{"rendered":"<p>When setting Windows terminal server you need to set license server, which can be any windows server with the role license service install on it. Or through powershell : Install-WindowsFeature RDS-Licensing \u2013IncludeAllSubFeature -IncludeManagementTool Yet even after add this server to the deployment setting : you can still get error about missing license server on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12,14,15],"tags":[],"class_list":["post-2296","post","type-post","status-publish","format-standard","hentry","category-tech","category-tutorials","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2296"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2296\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}