为远程桌面会话主机提供许可证

适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016

可以使用本文中的信息为远程桌面服务 (RDS) 部署上的会话主机配置许可。 根据分配给要为其提供许可的会话主机的角色,此过程略有不同。

必备条件

要为会话主机安装许可证,需要一个激活了每用户或每设备客户端访问许可证 (CAL) 的远程桌面许可证服务器。

为包含 RD 连接代理角色的 RDS 部署配置许可

如果需要为 RDS 部署不包含连接代理角色的会话主机提供许可,则需要使用组策略从 Active Directory 域集中指定许可证服务器,或者在每个会话主机上本地指定许可证服务器。 将 Windows Server 与 Azure 虚拟桌面配合使用时,还需要指定许可证服务器。

指定许可证服务器:

  1. 在 RD 连接代理计算机上,打开服务器管理器。

  2. 在服务器管理器中,选择“远程桌面服务”>“概述”>“编辑部署属性”>“RD 许可”。

    A screenshot of the set up remote desktop services deployment page. The user selects the tasks drop-down menu and selects Edit Deployment Properties.

  3. 选择远程桌面授权模式(根据部署选择“每用户”或“每设备”)。

    注意

    如果将已加入域的服务器用于 RDS 部署,则可以同时使用“每用户”和“每设备”CAL。 如果将工作组服务器用于 RDS 部署,则必须使用每设备 CAL。在这种情况下,不允许使用每用户 CAL。

  4. 指定许可证服务器,然后选择“添加”。

    A screenshot of the configure the deployment page. Two red borders surround the two radio buttons that say per device and per user, and a field for the file path for the license server.

为仅包含 RD 会话主机角色和 RD 授权角色的 RDS 部署配置许可

  1. 根据是要从域中以集中方式配置组策略还是要在每个会话主机上本地配置组策略,执行以下操作:

    • 打开“组策略管理控制台”(GPMC) 并创建或编辑针对会话主机的策略。

    • 在会话主机上打开“本地组策略编辑器”。

  2. 转到“计算机配置”>“管理模板”>“Windows 组件”>“远程桌面服务”>“远程桌面会话主机”>“许可”。

    A screenshot of the list of policies for Remote Desktop licensing. Use the specified Remote Desktop license servers and Set the Remote Desktop licensing mode are highlighted with red borders.

  3. 在策略列表中,右键单击“使用指定的远程桌面许可证服务器”,然后选择“属性”。

  4. 选择“已启用”,然后在“要使用的许可证服务器”下输入许可证服务器的名称。 如果有多个许可证服务器,请使用逗号分隔其名称。

    A screenshot of the Use the specified Remote Desktop license servers window. The field labeled License servers to use is highlighted with a red border.

  5. 选择“确定”

  6. 在策略列表中,右键单击“设置远程桌面授权模式”,然后选择“属性”。

  7. 选择“启用”。

  8. 在“为远程桌面会话主机服务器指定授权模式”下,根据部署选择“每设备”或“每用户”。

    A screenshot of the Set the Remote Desktop licensing mode window. The drop-down menu for specifying the licensing mode for the RD Session Host server is highlighted with a red border.

后续步骤

要了解如何创建报告来跟踪远程桌面许可证服务器颁发的 RDS 每用户 CAL,请参阅跟踪远程桌面服务客户端访问许可证 (RDS CAL)