跳过正文
Background Image
  1. Posts/

解决 “Remote session was disconnected because there are no Remote Desktop client access licenses available”

·262 字·1 分钟· ·
沈显鹏
作者
沈显鹏
目录

问题描述
#

在 Windows Server 2012 R2 上,有时会遇到 RDP 无法连接的问题:

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


解决方法
#

如果你有 vSphere Web Client 或其他方式可以登录服务器控制台,可以尝试以下步骤:

  1. 打开注册表编辑器 在命令行或运行窗口输入 regedit.exe,回车。

    Regedit

  2. 删除以下键值

    • LicensingGracePeriod
    • LicensingGracePeriodExpirationWarningDays
  3. 处理删除失败的情况 如果出现 unable to delete all specified values 错误,需要先修改该键的权限。 可参考 YouTube 视频教程

  4. 重启系统 如果仍无法连接,重启后再尝试。


注意事项
#

  • 在我的环境中,大约每 90~120 天 就会再次遇到此问题,这并不是最终解决方案。
  • 如果你有更好的永久性解决办法,欢迎分享。

特别感谢 Bill K. 提供上述解决方案。

相关文章

Daily Notes
This is only supporting English, not Chinese.
通过 generic-webhook-trigger 插件实时获取 Bitbucket Repository Events
·716 字·2 分钟
本文介绍如何使用 Jenkins 的 generic-webhook-trigger 插件来实时获取 Bitbucket 仓库的事件信息,如 Pull Request ID 等。
Jenkins 执行 Shell 如果返回值不为0,作业(Job)停止并失败怎么办?
·393 字·1 分钟
如何在 Jenkins Pipeline 中处理 Shell 返回值不为0的情况,以确保作业(Job)在执行成功后仍然显示为成功状态。
解决 “.NET Framework 2.0 or later is required on this computer to run a Jenkins agent as a Windows service” 问题
·316 字·1 分钟
当 Jenkins Windows Agent 因缺少 .NET Framework 无法连接时,通过安装 .NET Framework 3.5 并设置 Jenkins Agent 服务来解决问题。
每个 Jenkins 用户都应该知道这三个最佳实践
·1603 字·4 分钟
本文介绍了 Jenkins 的三个最佳实践:配置即代码、Jenkins 共享库和多分支流水线,帮助用户提升 Jenkins 的使用效率和质量。
将 Jenkins Shell 返回的字符串处理为字符数组
·600 字·2 分钟
如何在 Jenkins Pipeline 中将 Shell 返回的字符串处理为字符数组,以便在后续步骤中进行处理和使用。