Skip to content

Closed Remote Desktop on Windows Server by Mistake, Unable to Access Remotely "lightsail"

0

I accidentally disabled Remote Desktop on my Windows Server, and now I'm unable to access the server remotely through RDP. What are the steps I can follow to regain access or re-enable Remote Desktop on the server? Any advice or solutions for this issue would be greatly appreciated. I'm using AWS lightsail with a Windows Server instance.

1 Answer
0
Accepted Answer

Hello.

How about setting the launch script to run the following command when creating a Lightsail snapshot and restoring an instance from the snapshot?
The following command is the command to disable Windows Firewall.
https://docs.aws.amazon.com/lightsail/latest/userguide/create-powershell-script-that-runs-when-you-create-windows-based-instance-in-lightsail.html

<powershell>
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
</powershell>
EXPERT
answered 10 months ago
AWS
EXPERT
reviewed 4 months ago
  • pls give me full command to insert on lanch script to open remote desktop and firewall port

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.