EN
EspañolEnglishFrançaisDeutschPortuguêsItaliano
Sign in Start free
Lightsail

You have lost the Administrator password of a Windows machine in AWS: what you can do

The Windows machine works, but nobody remembers the Administrator password, or the person who changed it is no longer around. What Lightsail offers you, what EC2 offers you, what to do when neither works, and how to stop it happening again.

⏱ 30 minutes ◎ For everyone Updated on 30/10/2026

Imagine that tomorrow you have to update a customer's application on their Windows server and, when you open Remote Desktop, the Administrator password does not work. It was set by a technician who no longer works with you, or it was changed "temporarily" and nobody wrote down the new one. The machine keeps serving the website, but nobody can get in to touch it: no updating, no looking at an error, no restarting a service. And in AWS there is no "forgotten your password?" button and no support team that will log in for you: the machine is yours, and so is the key.

This guide goes through the ways out you have, from the easiest to the most laborious, and ends with the only one that always works: having left an emergency door beforehand.

Before you start: what each thing means

Administrator
The administrator user that every Windows Server comes with. On AWS machines it is the one you log in with the first time.
Remote Desktop (RDP)
The usual way to operate a Windows machine remotely: you see its screen in a window. It uses port 3389.
Lightsail and EC2
The two AWS services for having machines. Lightsail is the simple, fixed-price one; EC2 the full one. The ways out of this problem are different in each.
Snapshot
A complete copy of the machine's disk at a given moment. It can be used to create another identical machine.
Systems Manager (SSM)
An AWS service that can run tasks on an EC2 machine without logging in to it.
OpenSSH
The SSH server that Windows Server has included since 2019 as an optional feature. It lets you open a remote PowerShell console with a key or a certificate instead of a password.

Step by step

  1. First check whether Lightsail still knows the password

    When Lightsail creates a Windows machine, it generates the Administrator password and stores it. In the Lightsail console, inside the machine, Connect tab, there is a button to show the default password. If nobody ever changed it, there it is and the problem is over.

    If someone changed it from inside Windows, Lightsail does not know: it will keep showing the old one, which no longer works. You will know because Remote Desktop rejects it.

  2. In EC2: the official reset procedure

    In EC2 there is an automated AWS procedure, AWSSupport-ResetAccess, inside Systems Manager. You find it under Systems Manager → Automation → Execute automation, search for that name, specify the machine and launch it. What it does, in short: stops the machine, detaches its disk, attaches it to a temporary helper machine, leaves a program ready that generates a new password on boot, reattaches the disk and starts it. The new password is then retrieved with the machine's private key (.pem), in the EC2 console → Get Windows password.

    Bear two things in mind: the machine will be stopped for a few minutes, and you need the .pem key it was created with. If you do not have the .pem either, the procedure can create a new one, but the road gets longer.

  3. If you have another administrator user, use it

    Before stopping anything, think about whether anyone else has a user with administrator rights on that machine. With it, in PowerShell as administrator:

    net user Administrator NuevaContraseña-Larga-2026

    And done. It is the quickest way out and the reason it is always worth having a second administrator. But beware of the remedy: if that second user has a password written down in a shared document, you have swapped one problem for another.

  4. If none of the above works: snapshot and new machine

    The last resort in Lightsail when the password was changed and there is no other user: create a snapshot of the machine and, from it, a new machine. Lightsail generates a new Administrator password for the machine created from the snapshot, and the data and programs come from the copy. Then you move the static IP to the new machine and, when you have checked that everything works, delete the old one.

    It is not free in time: the snapshot takes a while, the new machine takes a while to boot, and you have to check that the services start and that the DNS or the IP point where they should. Allow a good hour and a downtime window, and do it calmly: it is the moment when it is easiest to break something else.

  5. And if there is no snapshot either: what you need to know before it happens

    It is worth facing this squarely. The previous step only works if a snapshot exists or one can be created from the AWS console. If the machine was deleted, if the disk is damaged or if access to the AWS account itself was lost too, there is nothing to recover: neither AWS nor anyone else can get into a machine of which no copy exists. The application, the database, the emails, the configurations and the years of files that were inside are lost. There is no technical support to call.

    This is not an exaggeration or a rare case: it is what happens every year to businesses that took the machine for "something that just works". That is why the next two points are not optional.

  6. Access recovered: leave in place what would have saved you all this

    Three things, in order of importance:

    1. An emergency door with no password. Enable Windows's OpenSSH server (Settings → Apps → Optional features → OpenSSH Server; Windows Server 2025 has it installed) and create a rescue administrator user that only accepts certificates signed by an authority of yours, as explained in the spare key guide. That user has no password to lose or to steal.
    2. A password manager for the Administrator password, shared with whoever needs to know it, instead of a document or an email.
    3. Automatic snapshots, every night, and if possible a copy in another region. When everything else fails, it is the only difference between an hour's work and losing everything.

What can go wrong

Lightsail shows a password but Remote Desktop rejects it

Someone changed it from inside. Lightsail only knows the one it generated when creating the machine. Go to step 3 or step 4.

Remote Desktop does not connect at all

It may not be the password: check that port 3389 is open in the Lightsail firewall or the EC2 security group for your current IP (home IPs change). If it was limited to an old IP, open it for yours and try again.

The EC2 procedure fails halfway

AWSSupport-ResetAccess works with the machine's disk, so it needs EC2 and Systems Manager permissions and a machine with a normal root volume. Read the message of the step that failed in the automation execution: it usually says exactly which permission is missing.

The new machine from the snapshot does not start some service

Normal if a service was configured with a specific IP or machine name. Log in with the new password, review the event viewer and the stopped services. That is why it is best not to delete the old machine until you are sure.

In Simplio

In Simplio, the card of each Windows machine has the "Create spare key" button: it gives you a PowerShell script to paste once over Remote Desktop, which enables Windows's OpenSSH server, creates the simplio-rescate user with a random password that is not stored, and opens port 22 only for Simplio's IP. From then on, if you lose the Administrator password, you click "Rescue with the spare key", type your two-factor code and choose "Set a new password": Simplio generates it, applies it and shows it to you once only. Without stopping the machine, without snapshots, without a .pem. And every day it checks that the key still opens, to warn you if someone deletes it. How the spare key works.

The same task, in AWS and in Simplio

In the AWS consoleIn Simplio
If the password never changedLightsail console → Connect → show passwordPowerShell terminal in the browser, with two-factor, without seeing or copying the password
If the password changed (Lightsail)Snapshot, new machine, move the IP, check services: a good hour and a stoppageWith the spare key created: "Rescue" → new Administrator password on screen, in a minute, without stopping anything
If the password changed (EC2)AWSSupport-ResetAccess: machine stopped for a few minutes, .pem key to handThe spare key is for Lightsail today; in EC2, the AWS procedure
Know which users the machine hasGet in somehow and look at the accounts"See which users are on the machine", without changing anything
Stop it happening againCreate the rescue user, OpenSSH and the certificate authority yourself, and remember to test itPaste a script once; Simplio checks every day that the key still opens
If there is no snapshotEverything is lost: there is nobody to callScheduled snapshots every night, also in another region, with an alert if they fail

Try it free for 15 days See how it works

All of this, without the AWS console

Simplio is a panel to manage your AWS accounts: machines, scheduled copies, databases, domains, email and what AWS charges you, with per-person permissions and two-factor. Nothing installed on your servers.

Start free for 15 days, no card

Already a customer? Customer access.