Skip to main content
  1. Posts/

Fixed "Remote session was disconnected because there are no Remote Desktop client access licenses available"

·152 words·1 min· ·
Xianpeng Shen
Author
Xianpeng Shen
DevOps & Build Engineer | Python Enthusiast | Open Source Maintainer
Table of Contents

Problem
#

Sometimes my Windows server 2012 R2 has RDP connect problem below:

The remote session was disconnected because there are no Remote Desktop client access licenses available for this computer.
Please contact the server administrator.

RDP connect problem

How to Fix
#

You could log in to the vSphere Web Client if you have via console or have some other way to log in to the machine.

  1. Open regedit.exe and navigate to

    Regedit

  2. Search and Delete LicensingGracePeriod and LicensingGracePeriodExpirationWarningDays

  3. If deletion failed, this failure message appears unable to delete all specified values, you need change permission. Refer to the related videos on YouTuBe.

  4. Reboot the system if it is still doesn’t work.

In my case, every 90 to 120 days, the RDP end of grace period shows up, this is not the final solution. please let me know if you have a better solution.

Finally, thanks to Bill K. shared with me the above solution.

Related

Jenkins Top 3 best practice

·906 words·5 mins
Discusses three best practices for Jenkins: Configuration as Code, Shared Libraries, and Multi-Branch Pipeline, highlighting their benefits in terms of transparency, traceability, and self-service builds.