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
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—Executing Shell Scripts—Handling Non-Zero Return Codes
·242 words·1 min
How to handle non-zero return codes from Shell commands in a Jenkins Pipeline to ensure the job shows a successful status even if a command fails.
Daily Notes
·1848 words·9 mins
Starting August 7, 2020, I would like to start recording some daily/important things in English.
Obtaining Bitbucket Repository Events in Real Time via the generic-webhook-trigger Plugin
·409 words·2 mins
This article describes how to use Jenkins’ generic-webhook-trigger plugin to obtain real-time event information from a Bitbucket repository, such as the Pull Request ID.
How to fix ".NET Framework 2.0 or later is required on this computer to run a Jenkins agent as a Windows service"
·211 words·1 min
Resolve the issue of Jenkins Windows agents not connecting due to missing .NET Framework, including steps to install .NET Framework 3.5 and set up the Jenkins agent service.
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.
Beyond Coding - The Importance of Writing for Programmers
·686 words·4 mins
This article explores the importance of writing skills for programmers, highlighting the role of communication and expression in career advancement, and sharing personal experiences and insights on writing.