- Newest
- Most votes
- Most comments
Since you've disabled the network adapter inside your Windows Server 2022 instance, you'll need to use a recovery method to regain access. Here's how you can fix this issue:
-
Stop your unreachable Lightsail Windows instance.
-
Detach the root volume from your unreachable instance and attach it to another reachable Windows instance in the same Availability Zone as a secondary storage volume. If you don't have another instance, you'll need to create one temporarily.
-
On the working instance, open Disk Management by running
diskmgmt.mscin a Command Prompt window. -
Right-click the newly attached volume from your unreachable instance and select "Online" to make it accessible.
-
Open the Windows Registry Editor by running
regeditin a Command Prompt window. -
In Registry Editor, select HKEY_LOCAL_MACHINE, then go to File > Load Hive.
-
Navigate to the attached drive, go to \Windows\System32\config, select the SYSTEM file, and choose Open.
-
Enter a unique name for the hive when prompted.
From here, you can navigate to the network adapter settings in the registry and re-enable it. After making the changes, unload the hive, detach the volume, and reattach it to your original instance.
If you're not comfortable with these steps as a new AWS user, exporting to EC2 might be an alternative, but the above approach should work within Lightsail without requiring an export.
Sources
Troubleshoot issues connecting to your Amazon EC2 Windows instance - Amazon Elastic Compute Cloud
Relevant content
asked 2 years ago
asked 2 years ago

I am currently working under a free tier/trial at the moment. I have 2 instances: the original instance and one I created from a snapshot from the first. I am unable to create a new instance due to having "reached the maximum number of virtual CPUs (vCPUs) that can be created".