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

Help with Microsoft RMD 0x204 error code


Could anyone help with this issue?

When I try and open an EC2 Remote Desktop and launch the desktop file downloaded I get an 0x204 error code and a message saying 'We couldn't connect to the remote PC. Make sure the PC is turned on and connected to the network, and that remote access is enabled.' while it is trying to initialise.

Thank you

  • Try AWS Systems Manager's Session Manager and Start Session. See if that works.

asked 8 months ago157 views
1 Answer


As per,by%20allowing%20Network%20Level%20connections.

One of the most common problems that will trigger the Error Code 0x204 is an instance in which the Remote Desktop Protocol is not enabled on the Windows machine. In this case, you can fix the issue by enabling it manually via the System Properties screen and by allowing Network Level connections.

I would suggest you to check the following

  1. As AWS-User-5291433 mentioned, check if Session manager works

  2. Check the security group allows traffic from your computer to port 3389 (RDP).

  3. Check if the instance health checks have passed

  4. Check that your instance has a public IPv4 address.

  5. Check if the instance is in a public subnet and check the route table for the subnet

  6. Check the network access control list (ACL) for the subnet.

  7. As a last step, check if Remote Desktop Protocol is enabled but this can only be done once you access through session manager

If none of these helped, please provide the console output for your instance using the Amazon EC2 console, select the instance, and then choose Actions, Monitor and troubleshoot, Get system log

You could also use

To troubleshoot using the AWSSupport-TroubleshootRDP document

Log in to the Systems Manager Console.
Verify that you are in the same Region as the impaired instance.
Open the AWSSupport-TroubleshootRDP document.
For Execution Mode, choose Simple execution.
For Input parameters, InstanceId, enable Show interactive instance picker.
Choose your Amazon EC2 instance.
Review the examples, then choose Execute.
To monitor the execution progress, for Execution status, wait for the status to change from Pending to Success. Expand Outputs to view the results. To view the output of individual steps, in Executed Steps, choose an item from Step ID.
profile picture
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions