如何管理托管的 Amazon EC2 Windows 实例上的 RDP 设置?

1 分钟阅读
0

我想使用 AWSSupport-ManageRDPSetting AWS Systems Manager Automation 运行手册来管理 Amazon Elastic Compute Cloud (Amazon EC2) Windows 实例上的设置。

简短描述

AWSSupport-ManageRDPSettings 运行手册允许您管理 Amazon EC2 Windows 实例的远程桌面协议 (RDP) 设置。AWS Support-ManagerDPSettings 工作流将检查以下内容:

  1. 实例是否在 Windows 上运行。
  2. 托管实例是否处于联机状态
  3. 运行 AWS Tools for PowerShell 脚本,以在目标实例上应用所需的配置。

**注意:**在使用此运行手册更改 RDP 设置之前,请务必查看现有设置。

解决方法

运行 Systems Manager Automation 运行手册

**先决条件:**确保您的 AWS Identity and Access Management (IAM) 用户或角色拥有所需的权限。有关详细信息,请参阅 AWSSupport-ManageRDPSettings 上的“所需的 IAM 权限”。

完成以下步骤:

  1. 打开 Systems Manager 控制台
  2. 在导航窗格中,选择 Documents(文档)。
  3. 在搜索栏中,输入 AWSSupport-ManageRDPSettings
  4. 选择 AWSSupport-ManageRDPSettings 文档,然后选择 Execute automation(执行自动化)。或者,选择 Run this Automation (console)(运行此自动化(控制台))。
  5. 对于 Input parameters(输入参数),输入以下内容:
    **InstanceID。**选择您要更改其 RDP 设置的托管实例的 ID。
    **RdpportAction。**从列表中选择要应用于 RDP 端口的操作。
    **nlaSettingAction。**从列表中选择要对 NLA 设置执行的操作。
    **RemoteConnections。**从列表中选择要对 DenyTSConnections 设置执行的操作。
    **(可选)RDPPort。**如果您将 RDPPortAction 设置为 Modify(修改),请输入新的 RDP 端口号。端口号必须介于 1025-65535 之间。
    **注意:**更改端口后,RDP 服务将重新启动。
    **(可选)AutomationAssumeRole。**从列表中选择此运行手册的 IAM 角色。如果未指定角色,Automation 将使用运行此文档的用户的权限。
  6. 选择 Execute(执行)。

自动化完成后,查看 Outputs(输出)部分以查看详细结果。

工作流输出

成功的输出将显示 RDP 设置所发生的更改。要对您的 AWS 资源进行故障排除、管理和降低资源成本,请参阅 Systems Manager Automation 运行手册参考。这些运行手册以 AWSSupportAWSPremiumSupport 为前缀。

相关信息

设置自动化

运行由 Systems Manager Automation 提供支持的自动操作

AWS 官方
AWS 官方已更新 3 个月前