> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/en/windows/password-change.md).

# Changing the password

This article will help you fix the situation when you forgot your Windows Server account password. Only the built-in methods are used without downloading additional programs.

if you can't change the **Windows Server** password in the [VMmanager](https://spacecore.cloud/) panel due to errors, then here's what you should do.

***

To restore access, we will use the **SystemRescueCD** utilities.

First we go to **VmManager panel**, then we select our server, press «**Menu**» button. In the opened window press the button «**Recovery mode**».

<figure><img src="/files/nKtMynogXGoW865fJjCV" alt="" width="263"><figcaption></figcaption></figure>

After clicking, an information window opens with confirmation of the action.

<figure><img src="/files/v3mXOnnGOOYYaIKoeNmC" alt=""><figcaption></figcaption></figure>

Click "**Start mode and restart**". Our server restarts and activates recovery mode.

After a while, the server started up again.

<figure><img src="/files/va18rEiwJkrlP4eJVlr2" alt="" width="222"><figcaption></figcaption></figure>

Next, we need to connect to the server via **VNC**, use the appropriate button:

<figure><img src="/files/u0AZtqq45TCkkl3knxJ2" alt=""><figcaption></figcaption></figure>

We successfully connected to the server with **VNC**.

<figure><img src="/files/QUOMSnrIl7DFBpStYG1K" alt=""><figcaption></figcaption></figure>

Now we need to enter a command to check the existing partitions:

```
fdisk -l
```

After executing according to the standard, we see these sections:

<figure><img src="/files/UQhjGTHxYQ478A13YtJz" alt=""><figcaption></figcaption></figure>

Connect the partition with the Operating system using the command

```
mount /dev/vda2 /mnt
```

Now we need to go to the directory with the system file settings.

```
cd /mnt/Windows/System32/config/
```

Next, we need to display a list of Windows users, use the command

```
chntpw -l SAM
```

As a standard, we see 4 users.

<figure><img src="/files/68TZVQmmahtpAZkcKt1T" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**RID** is the unique identifier of the account.&#x20;

**Username** is the name of the account.&#x20;

**Admin?** — checks whether the user has administrator rights.&#x20;

**Lock?** — responsible for the availability of protection tools for users.
{% endhint %}

Use the command to change the **Administrator** account:

```
chntpw SAM
```

Please note that the command is used to change the data of another user

```
chntpw -u <name> SAM
```

{% hint style="info" %}
**\<name>** — for example, **Guest**.
{% endhint %}

The user editing menu opens, we write the number "1" to clear the password.

<figure><img src="/files/HL4EZYruMQdbFeYMfuBT" alt="" width="172"><figcaption></figcaption></figure>

We check for a password using the command

```
chntpw -l SAM
```

<figure><img src="/files/YGg9aql73nwzRfuox0Or" alt=""><figcaption></figcaption></figure>

Great, now the **Administrator** account does not have a password.

Go back to the [VMmanager](https://spacecore.cloud/) panel and click the "Recovery mode" button.

<figure><img src="/files/mdgfbNSi3p9ftalMsHhI" alt="" width="168"><figcaption></figcaption></figure>

We use «**Disable mode and restart**».

The server is running normally

<figure><img src="/files/bwxujNnm3zV1aZNuoUNn" alt="" width="222"><figcaption></figcaption></figure>

Now we can easily change the password from the service. Use the button «**Change password**», as in the screenshot.

<figure><img src="/files/w9o8umS91JjkFblV18qi" alt=""><figcaption></figcaption></figure>

Enter a new password or generate automatically, then click «**Save**».<br>

<figure><img src="/files/tZTzWM1sSVjBuJ85vx3V" alt=""><figcaption></figcaption></figure>

The password change was successful

Try connecting to the server via remote access with a new password.

<figure><img src="/files/zatMeq0NmKCSMEna42Sq" alt=""><figcaption></figcaption></figure>

Waiting to connect.

<figure><img src="/files/EATN5E5J4GforuuxMopH" alt=""><figcaption></figcaption></figure>

We have successfully joined our **VDS** on **Windows Server 2019!**
