{"id":775,"date":"2020-06-24T21:52:35","date_gmt":"2020-06-25T02:52:35","guid":{"rendered":"https:\/\/itblog.ldlnet.net\/?p=775"},"modified":"2020-06-24T21:52:35","modified_gmt":"2020-06-25T02:52:35","slug":"remote-desktop-licensing-mode-is-not-configured-when-configuring-remote-desktop-services","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2020\/06\/24\/remote-desktop-licensing-mode-is-not-configured-when-configuring-remote-desktop-services\/","title":{"rendered":"Remote Desktop Licensing Mode is Not Configured when configuring Remote Desktop Services"},"content":{"rendered":"\n<p>I recently setup a backend RDP server so that I could test our remote services. I went through the installation process and installed my RDP license on the server successfully. The problem was that I was not getting an error when logging onto the server locally to check the status of the RDP Server:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/remote-desktop-licensing-mode-is-not-configured.png\" alt=\"remote desktop licensing mode is not configured\"\/><figcaption>Error Example for RDP Licensing<\/figcaption><\/figure>\n\n\n\n<p>I also had Events within Event Viewer:<\/p>\n\n\n\n<p class=\"has-small-font-size\">Log Name: <strong>System<\/strong><br>Source: <strong>Microsoft-Windows-TerminalServices-Licensing<\/strong><br>Date: 6\/24\/2020 3:44:16 PM<br>Event ID: <strong>18<\/strong><br>Task Category: None<br>Level: <strong>Warning<\/strong><br>Keywords: Classic<br>User: N\/A<br>Computer: SRV2016-02.ldlnet.net<br>Description:<br><strong>The Remote Desktop license server &#8220;SRV2016-02&#8221; has not been activated and therefore will only issue temporary licenses. To issue permanent licenses, the Remote Desktop license server must be activated.<\/strong><\/p>\n\n\n\n<p>Usually, this error appears as a notification popup in the bottom right-hand corner of the screen saying:<\/p>\n\n\n\n<p class=\"has-small-font-size\"><em><strong>Remote Desktop licensing mode is not configured<\/strong><br><strong>Remote Desktop Services will stop working in xx days. On the RD Connection Broker server, use Server Manager to specify the Remote Desktop licensing mode and the license server.<\/strong><\/em><\/p>\n\n\n\n<p>And when you click on this notification popup, it doesn\u2019t redirect you anywhere and it gets simply disappeared which is a quite frustrating situation.<\/p>\n\n\n\n<p>I thought I had this set properly, but the RDP Licensing Diagnoser application told me that I needed to choose the licensing configuration to distribute for <strong>Per Device<\/strong> OR <strong>Per User<\/strong>. The licenses I installed were per device so I did some research.<\/p>\n\n\n\n<p>I found out that this had to be configured via the Registry, PowerShell, or could be configured through GPO. I chose to do GPO since that would always apply on my servers in my domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How To configure the Remote Desktop Licensing Mode through the Registry <\/h3>\n\n\n\n<p>Here\u2019s how to&nbsp;<strong>change the licensing mode<\/strong>&nbsp;for Remote Desktop session host using the registry editor and get rid of the error message Remote Desktop Services will stop working in xx days:<\/p>\n\n\n\n<p>At first, press\u00a0<strong>Windows + R<\/strong>\u00a0keys together and then type\u00a0<strong>regedit<\/strong>\u00a0in the Run dialog box and press\u00a0Enter\u00a0key.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2017\/03\/regedit-windows-10.png\" alt=\"regedit windows 10\" class=\"wp-image-11764\"\/><\/figure><\/div>\n\n\n\n<p>Next, in the left pane of the Registry Editor, navigate to the following registry key:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\">HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\RCM\\Licensing Core<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/licensing-mode-for-the-remote-desktop-session-host-is-not-configured.png\" alt=\"licensing mode for the remote desktop session host is not configured\" class=\"wp-image-17961\"\/><\/figure><\/div>\n\n\n\n<p>Next in the right pane, double-click on the\u00a0<strong>LicensingMode<\/strong>\u00a0to edit its value\u00a0and then change the\u00a0<strong>Value data<\/strong>\u00a0according to your requirement:<\/p>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-medium-pink-color\">Set the Value data\u00a0<strong>2<\/strong>\u00a0for <strong><em>Per Device<\/em><\/strong> RDS licensing mode<br>Set the Value data\u00a0<strong>4<\/strong>\u00a0for <strong><em>Per User<\/em><\/strong> RDS licensing mode<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/remote-desktop-services-will-stop-working.png\" alt=\"remote desktop services will stop working\" class=\"wp-image-17962\"\/><\/figure><\/div>\n\n\n\n<p>Finally, click on the\u00a0<strong>OK<\/strong>\u00a0button to save the changes.<\/p>\n\n\n\n<p>Now, restart your computer and check if the&nbsp;<strong>Remote Desktop licensing mode<\/strong>&nbsp;is not configured issue on Windows Server has been resolved or not.<\/p>\n\n\n\n<p>Once you changed the licensing mode, now everything will be reported accurately and the Remote Desktop session host will recognize the licensing configuration.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How To configure the Remote Desktop Licensing Mode through a Group Policy Object (GPO)<\/h3>\n\n\n\n<p>First Logon to a machines that has Group Policy Tools Installed, press\u00a0<strong>Windows + R<\/strong>\u00a0keys together, type\u00a0<strong>gpedit.msc<\/strong>,\u00a0and press\u00a0Enter\u00a0key.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2017\/11\/gpedit-windows-10.png\" alt=\"gpedit-windows-10\" class=\"wp-image-13339\"\/><\/figure><\/div>\n\n\n\n<p>Within Group Policy Editor, create a new GPO and link it to the level that you need to link it to. (In my case, the domain level.) Navigate to:<\/p>\n\n\n\n<p class=\"has-text-color has-small-font-size has-medium-pink-color\"><strong>Computer Configuration<\/strong>\u00a0>\u00a0<strong>Policies<\/strong>\u00a0>\u00a0<strong>Administrative Templates<\/strong>\u00a0>\u00a0<strong>Windows Components<\/strong>\u00a0>\u00a0<strong>Remote Desktop Services<\/strong>\u00a0>\u00a0<strong>Remote Desktop Session Host<\/strong>\u00a0>\u00a0<strong>Licensing<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/change-remote-desktop-licensing-mode.png\" alt=\"change remote desktop licensing mode\" class=\"wp-image-17960\"\/><\/figure><\/div>\n\n\n\n<p>Next, double-click on the \u201c<strong>Use the specified Remote Desktop license servers<\/strong>\u201d setting and then select\u00a0<strong>Enabled<\/strong>\u00a0option. Finally, enter the names of the<strong>\u00a0license servers<\/strong>\u00a0(host name\u00a0or\u00a0IP address) and then click on the\u00a0<strong>OK<\/strong>\u00a0button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/use-the-specified-remote-desktop-license-servers.png\" alt=\"use the specified remote desktop license servers\" class=\"wp-image-17959\"\/><\/figure><\/div>\n\n\n\n<p>Similarly, double-click on the \u201c<strong>Set the Remote Desktop licensing mode<\/strong>\u201d setting and then select\u00a0<strong>Enabled<\/strong>\u00a0option. Finally, set the licensing mode (<strong>Per Device<\/strong>\u00a0or\u00a0<strong>Per User<\/strong>) and then click on the\u00a0<strong>OK<\/strong>\u00a0button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.zerodollartips.com\/wp-content\/uploads\/2019\/12\/set-the-remote-desktop-licensing-mode.png\" alt=\"set the remote desktop licensing mode\" class=\"wp-image-17963\"\/><\/figure><\/div>\n\n\n\n<p>Once all these changes are done, close Group Policy Editor, go to the RDP Licensing Server and run a <strong><em>gpupdate \/force<\/em><\/strong> to refresh Group Policy.<\/p>\n\n\n\n<p>Now, when you open the Remote Desktop Licensing Diagnoser, you shouldn\u2019t see any errors like the remote desktop licensing mode is not configured on windows server or any kind of issues regarding your licenses.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-1024x646.png\" alt=\"\" class=\"wp-image-776\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-1024x646.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-300x189.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-768x485.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-1536x970.png 1536w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/06\/image-17-2048x1293.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Corrected Licensing Diagnoser Result<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How To configure Remote Desktop Licensing Mode through PowerShell<\/h3>\n\n\n\n<p>You can also use PowerShell to set the Licensing Mode via the <strong><em>Set-RDLicenseConfiguration<\/em><\/strong> cmdlet from the RemoteDesktop PowerShell Module which is installed with Remote Desktop Services:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\">Imort-Module remotedesktop\n\nSet-RDLicenseConfiguration -LicenseServer @(\"srv2016-01.ldlnet.net\",\"srv2016-02.ldlnet.net\") -Mode PerDevice -ConnectionBroker \"srv2016-01.ldlnet.net\"<\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">KEEP POSITIVITY ON YOUR SIDE!<br>CONTINUE TO LEARN!<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><strong>REFERENCES:<\/strong><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.zerodollartips.com\/remote-desktop-licensing-mode-is-not-configured\/\" target=\"_blank\">How to Fix Remote Desktop Licensing Mode is Not Configured<\/a><br><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/remotedesktop\/set-rdlicenseconfiguration?view=win10-ps\" target=\"_blank\" rel=\"noreferrer noopener\">Set-RDLicenseConfiguration<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently setup a backend RDP server so that I could test our remote services. I went through the installation process and<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2020\/06\/24\/remote-desktop-licensing-mode-is-not-configured-when-configuring-remote-desktop-services\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":159,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3,16],"tags":[196,258,257,55,256,254,255,253,259,207,20],"class_list":["post-775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-powershell","category-windows","tag-licensing","tag-perdevice","tag-peruser","tag-rdp","tag-rdp-license-server","tag-remote-desktop","tag-remote-desktop-licensing","tag-remote-desktop-services","tag-server-2016","tag-server-2019","tag-windows","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=775"}],"version-history":[{"count":2,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/775\/revisions"}],"predecessor-version":[{"id":779,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/775\/revisions\/779"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/159"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}