By using AWS re:Post, you agree to the AWS re:Post Terms of Use

How do I manage RDP settings on a managed Amazon EC2 Windows instance?

2 minute read
0

I want to use the AWSSupport-ManageRDPSetting AWS Systems Manager automation runbook to manage the settings on my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance.

Short description

The AWSSupport-ManageRDPSettings runbook allows you to manage Remote Desktop Protocol (RDP) settings for your Amazon EC2 Windows instance. The AWSSupport-ManageRDPSettings workflow checks the following:

  1. The instance runs on Windows.
  2. The managed instance is Online.
  3. Runs an AWS Tools for PowerShell script to apply the required configuration on the target instance.

Note: Before you use this runbook to change RDP settings, make sure that you review the existing settings.

Resolution

Run the Systems Manager Automation runbook

Prerequisite: Make sure that the AWS Identity and Access Management (IAM) user or role has the required permissions. For more information, see Required IAM permissions on AWSSupport-ManageRDPSettings.

Complete the following steps:

  1. Open the Systems Manager console.
  2. In the navigation pane, choose Documents.
  3. In the search bar, enter AWSSupport-ManageRDPSettings.
  4. Select the AWSSupport-ManageRDPSettings document, and then choose Execute automation. Or, choose Run this Automation (console).
  5. For the Input parameters, enter the following:
    InstanceID. Choose the ID of the managed instance that you're changing the RDP settings for.
    RDPPortAction. Choose the action to apply to the RDP port from the list.
    NLASettingAction. Choose the action to perform on the NLA setting from the list.
    RemoteConnections. Choose the action to perform on the DenyTSConnections setting from the list.
    (Optional) RDPPort. If you set the RDPPortAction to Modify, then enter the new RDP port number. The port number must be between 1025-65535.
    Note: After the port is changed, the RDP service restarts.
    (Optional) AutomationAssumeRole. Choose the IAM role for this runbook from the list. If a role isn't specified, then Automation uses the permissions of the user who runs this document.
  6. Choose Execute.

Review the Outputs section to see detailed results after the automation completes.

Workflow output

The successful output shows the changes that occurred to the RDP setting. To troubleshoot, manage, and reduce costs on your AWS resources, see the Systems Manager Automation runbook reference. These runbooks are prefixed with AWSSupport or AWSPremiumSupport.

Related information

Setting up Automation

Run an automated operation powered by Systems Manager Automation

AWS OFFICIAL
AWS OFFICIALUpdated 11 days ago