远程桌面报错解决:No Remote Desktop License Servers Available

摘 要

用户发来反馈,使用部门Windows跳板机报错:The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.Please contact the server administrator,最后发现是微软RDP远程桌面套件的一个BUG,可通过安装微软补丁或修改注册表来解决,本文简单记录分享下解决过程…

 

作为一名 Linux 系统运维攻城狮,由于有过 Windows 桌面运维历史背景,部门在用的几台 Windows Server 跳板机理所当然的成了我的“副业”。

上次用户吐槽只能同时远程登录 2 个帐号,很不爽。于是就把系统重装成了 2012R2,并且安装了 Remote Desktop 套件,并在微软激活了“远程桌面服务客户端访问许可证”,支持多人在线,倒也受到兄弟部门的一致好评。

昨天,用户又来吐槽了,说远程桌面不可用,连接如下报错:

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.Please contact the server administrator...

远程桌面报错解决:No Remote Desktop License Servers Available

若是中文系统,则报错如下:

由于没有远程桌面授权服务器可以提供许可证,远程会话被中断。请跟服务器管理员联系。

远程桌面报错解决:No Remote Desktop License Servers Available于是,使用 Administrator 帐号测试了一把,发现管理员也报这个错误!

这里分享一个小技巧:此时管理员也无法远程了,可以使用 如下命令强制远程连接:

mstsc /admin

在国外博客论坛搜了不少资料,终于搞定了!

搜报错信息前半句关键词,网上给出的方法都是要删除如下注册表键值:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSLicensing

删除后,发现没什么 Luan 用,报错依旧。

于是把搜索关键词换成了:

No Remote Desktop License Servers Available

点开了一篇教程(原文地址),发现是删除另一个键值:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerRCMGracePeriod

按照文章说的,先设置下注册表键值写权限:远程桌面报错解决:No Remote Desktop License Servers Available

不设置是无法删除的:远程桌面报错解决:No Remote Desktop License Servers Available

按照文章描述直接设置也是不行的:远程桌面报错解决:No Remote Desktop License Servers Available

根据我之前做桌面运维时积累的经验,得先如图修改键值的所有者为 Administrator:
远程桌面报错解决:No Remote Desktop License Servers Available

确认后,再添加“完全控制权限”即可:

远程桌面报错解决:No Remote Desktop License Servers Available

加完权限后,即可删除成功:

远程桌面报错解决:No Remote Desktop License Servers Available

重启系统后,远程登录就正常了!

在写这篇文章的时候,顺手又搜了下关键词,从下面这篇文章的评论中:

http://kwsupport.com/2014/03/windows-2012-no-remote-desktop-license-servers-available/

得知微软已经发布过修复补丁了:

https://support.microsoft.com/kb/2916846

不过手头现在没有环境测试,等下次另外 2 台出问题的时候,再尝试一下。

原文地址:https://www.cnblogs.com/taomylife/p/10540894.html