---
title: 'How to reset a password on Windows 2019 | Zomro'
description: 'If you have lost the password to access the server using the Windows 2019 operating system, then this article is just for you...'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623795945_screenshot_2.jpg'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [Useful articles](https://zomro.com/blog/articles/)
  * How to reset a password on Windows 2019 



# How to reset a password on Windows 2019

16-06-2021

## Password Reset on Windows 2019

In the adjacent article "Password Reset on Windows Server 2016-2012," we have already shown you how to easily reset the password for accessing as the Administrator or any other user with access to virtual machine management. In this article, we will show you how to do it using Windows Server 2019.

## **Password Reset for Windows********Server 2019**

On this version of the operating system, there is a different security policy, so you cannot reset the password using the usual password recovery image. For this, we will need the SystemRescue image, and we will use the fifth version.

So, after connecting the system recovery image, we need to select the "SystemRescueCd: default boot options" item. Press the "Enter" button and wait for the system to fully load.

![How to reset a password on Windows 2019 - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623795849_screenshot_8.jpg)![How to reset a password on Windows 2019 - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623795910_screenshot_1.jpg)![How to reset a password on Windows 2019 - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623795945_screenshot_2.jpg)

First, you need to mount the Windows operating system to the system recovery image. To understand which device to connect for password reset, enter the command:
    
    
    _fdisk -l_

After that, you need to create the directory _/mnt/Windows_ to which we will connect the device. In our case, it is vda2, but your device may be different. Usually, you need the device that has more disk space, if there are two, where the first one is the boot device and the second one is the main device.
    
    
    _mkdir /mnt/Windows
    mount -t ntfs -o rw /dev/vda2 /mnt/Windows_

![How to reset a password on Windows 2019 - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623795951_screenshot_3.jpg)

Note that if you encounter the same message as in the screenshot, it means that you need to boot the Windows operating system after disconnecting the recovery image, and then shut down Windows again using the "Stop" button in the VMmanager control panel. After that, in the "Disks" tab, reconnect the recovery image to the server and start it, performing the above three commands again.

Once you have mounted the device to your server, go to the directory where the SAM file is stored. SAM is the Security Accounts Manager in the Windows operating system, which operates the user account database.
    
    
    _cd /mnt/Windows/Windows/System32/config/
    ls -l | grep SAM_

![How to reset a password on Windows 2019 - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623796017_screenshot_4.jpg)

To prevent any unpleasant situations, let's make a backup of the file with the following command:
    
    
    _cp SAM SAM.back_

To view the user accounts on the server using SAM, use the following command:
    
    
    _chntpw -l SAM_

![How to reset a password on Windows 2019 - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623796049_screenshot_5.jpg)

To perform actions with the desired user, enter the command:
    
    
    _chntpw -u Administrator SAM_

Instead of Administrator, you can specify the user you need. From the list, select the first option "_Clear_ (blank) user password," enter the number 1. After that, you should see the message "_Password cleared_ ," enter the letter q, and you can safely disconnect the recovery disk and boot into Windows.

![How to reset a password on Windows 2019 - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a38@server-panel.net/2021/06/01/medium_1623796014_screenshot_6.jpg)

**Conclusion**

This article has shown how to reset the password using the system recovery disk and the Security Accounts Manager.

Similar articles:

[API - Interaction with Backup Schedule](https://zomro.com/blog/articles/486-api-interaction-with-backup-schedule) [API - Interaction with Rescue](https://zomro.com/blog/articles/485-api-interacting-with-rescue) [How to Manage Containers? Docker Swarm vs. Kubernetes](https://zomro.com/blog/faq/632-how-to-manage-containers-docker-swarm-vs-kubernetes) [Benefits of SSD](https://zomro.com/blog/articles/56-preimuschestva-ssd-diskov) [Five Best Free Web Hosting Control Panels for Linux VPS](https://zomro.com/blog/articles/637-five-best-free-web-hosting-control-panels-for-vps-on-linux)

[ Dedicated servers from €88.80/mon ](/dedicated-servers)
