# 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FvbwvXrfsZRH8iFleTKX6%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-04%20%D0%B2%2020.27.41.png?alt=media&#x26;token=543359ac-b1e0-4228-8313-46f13ce5d450" alt="" width="263"><figcaption></figcaption></figure>

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FuavAo3I2hg8iEqmTkqu6%2Fimage.png?alt=media&#x26;token=3e418bad-1915-4920-8725-f183dfca7627" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FCqZnBOiqtewcsqobmqhP%2Fimage.png?alt=media&#x26;token=fe9502db-2493-46b1-b5de-ab09bc4395fd" alt="" width="222"><figcaption></figcaption></figure>

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F442BVsklwncEQmx1ORKE%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-04%20%D0%B2%2020.30.42.png?alt=media&#x26;token=14cbdf8d-950b-4b5d-b5c7-d39a3dddfe09" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fk96dlwyyzXczUbUGcCcs%2Fimage.png?alt=media&#x26;token=0d7fbdc8-5d06-4841-adb4-9a0a0048325d" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fxxh5F0v0NlV740Z4KAtb%2Fimage.png?alt=media&#x26;token=edc6344c-cb95-437b-b19d-2e93c943f0a4" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fqyp9L9mnI5XVQl4tPhIV%2Fimage.png?alt=media&#x26;token=30709416-2531-4538-9427-668c5d6922e5" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F6OU0ffkq17rLhaymHzgB%2Fimage.png?alt=media&#x26;token=9eb09507-f337-4121-ace7-879148724121" alt="" width="172"><figcaption></figcaption></figure>

We check for a password using the command

```
chntpw -l SAM
```

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FldOsp5GDGpr0dcJTX0ix%2Fimage.png?alt=media&#x26;token=e5eb8f84-6c1e-4ecb-867e-5d6a35d10aca" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FRzQuYgnppXfEREyDI859%2Fimage.png?alt=media&#x26;token=5b3313d4-137c-4473-b40b-260bafa53531" alt="" width="168"><figcaption></figcaption></figure>

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

The server is running normally

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FQXwTNCGzqTFqkdWwyxfK%2Fimage.png?alt=media&#x26;token=9af182c4-d6be-49af-b373-c3b5a74b1496" 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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FgRb7U6opTmasaImOdIJn%2Fimage.png?alt=media&#x26;token=50b500a6-a694-474a-89fd-9b48e9457725" alt=""><figcaption></figcaption></figure>

Enter a new password or generate automatically, then click «**Save**».\


<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fv2fh52BkrtTOzkV5RPBF%2Fimage.png?alt=media&#x26;token=e5e5d0ad-d3e9-4576-9fa1-f27d5ddee047" alt=""><figcaption></figcaption></figure>

The password change was successful

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

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FRK5n5qZ5ZjVx4iIAAb87%2Fimage.png?alt=media&#x26;token=adcf8d5d-44bb-4861-817c-2a54ee5b4e93" alt=""><figcaption></figcaption></figure>

Waiting to connect.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FGPuuLFSXALi9Ce54vOSs%2Fimage.png?alt=media&#x26;token=20a98773-07a6-4b31-bcc3-b082969d3e23" alt=""><figcaption></figcaption></figure>

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