Get a VPS server with a 15% discount
Sale ends in
00Days
:
00Hours
:
00Minutes
:
00Seconds

Resetting a Forgotten Windows Server Password via SystemRescueCD

This article will help you resolve a situation where you have forgotten the password to your Windows Server account. Only built-in methods are used, without downloading any additional software.

If changing the Windows Server password from the VmManager panel fails due to errors, here is what you should do.

To restore access, we will use the SystemRescueCD utilities.

First, go to the VmManager panel, select your server, and click the "Menu" button. In the window that opens, click the "Recovery mode" button.

Recovery mode button in the VmManager panel

After clicking, an information dialog opens asking you to confirm the action.

Action confirmation dialog in VmManager

Click "Start mode and reboot". Your server will reboot and start in recovery mode.

After some time, the server will start again.

Server started in recovery mode

Next, you need to connect to the server via VNC using the corresponding button:

VNC connection button in VmManager

We have successfully connected to the server using VNC.

Successful VNC connection to the server

Now we need to run a command to list the existing partitions:

After running the command, by default you will see the following partitions:

List of existing disk partitions

Mount the partition containing the operating system using the command:

Next, change to the directory containing the system configuration files.

Now we need to list the Windows users using the command:

By default, you will see four users.

Windows user list in chntpw

RID — unique account identifier.

Username — account name.

Admin? — indicates whether the user has administrator rights.

Lock? — indicates whether protection mechanisms are enabled for the user.

Use the following command to edit the Administrator account:

Note that to modify another user account, use the command:

<name> — for example, Guest.

A user editing menu will open. Enter "1" to clear the password.

User editing menu in chntpw

Check whether a password is set using the command:

Password status check for the Administrator account

Great, the Administrator account now has no password.

Return to the VmManager panel and click "Recovery mode".

Recovery mode button in the VmManager panel

Select "Disable mode and reboot".

The server has now started in normal mode.

Now you can change the service password without any issues. Click the "Change password" button as shown in the screenshot.

Change password button in VmManager

Enter a new password or generate one automatically, then click "Save".

New password form in VmManager

As you can see, the password change was successful.

Now try connecting to the server via remote access using the new password.

Connecting to the server with the new password

Wait for the connection to complete.

Waiting for the remote connection to complete

We have successfully connected to our VDS running Windows Server 2019!