# Reset Password on Server 2016

This potentially works with other versions of Windows server as well since adding an admin command prompt to Windows is relatively universal. Overview

<p class="callout danger">**Disclaimer** </p>

<p class="callout danger">These instructions are provided **AS IS** ! Use it at **your own risk** !!! We are not encouraging you to crack or hack systems where you have no authorized access. This post is intended for educational purposes.</p>

### Step 1 – Boot from Window ISO

Depending your scenario (physical machine or virtual machine), you will need to boot from you Windows ISO Bootable image. When the installation wizard start, set your settings as required and press Next

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/yPJimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/yPJimage.png)

In the next installation screen, click on the **Repair your Computer** link in order to have access to the command line tool we will use to perform the necessary change

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/UHOimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/UHOimage.png)

In the **Choose an option**  screen, Select the option **Troubleshoot (so the second option on the screenshot !!!)**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/7evimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/7evimage.png)

Finally, in the **Advanced Settings Page**, select the option **Command Prompt**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/85Uimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/85Uimage.png)

After clicking on the command Prompt, you can see that indeed we have access to a nice command line interface

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/yzDimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/yzDimage.png)

### Step 2 – Modify “Offline Registry”

In the command prompt, you will issue the follow command : **regedit**. This will open the registry editor.

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/Xw1image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/Xw1image.png)

In the registry editor, Select on the **HKEY\_LOCAL\_MACHINE** Node and from the **File menu**, Select **Load Hive**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/IqWimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/IqWimage.png)

In the dialog box, find **your os partition** and navigate to **c:\\Windows\\System32\\config.** From the location, select the file **Software (not the software.txt file but the software file)**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/6Dvimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/6Dvimage.png)

Provide a new name to the hive and **press OK**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/NiHimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/NiHimage.png)

Expand the newly created folder (i.e. PWD\_HACK) and browse to the following location : **HKLM\\&lt;%Name of loaded HIVE&gt;\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/zjAimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/zjAimage.png)

Under the **Image File Execution options**, create a new key called **LogonUI.exe**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/EdFimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/EdFimage.png)

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/Vm0image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/Vm0image.png)

Select the **LogonUI.exe** key and create a new **REG\_SZ (String Value) called Debugger.** Select the String Value **Debugger**, **double-click** on it and put as value the following **c:\\Windows\\system32\\cmd.exe.**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/Ic8image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/Ic8image.png)

When done, you can reboot your machine….

### Step 3 – Recover your Password ! 

The change we have made in the registry will basically start a command prompt with Admin rights instead of the login shell where you would need to enter your username and password… You have to do nothing, the prompt is there and you are ready to reset or create a new user account with admin rights in order to restore your lost access….

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/5KEimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/5KEimage.png)

To reset the password of the administrator; type in the command prompt **net user administrator &lt;%newPassword%&gt;**

<p class="callout info">**You can also create a new admin user with the commands below.  
  
net user newuser01 newPassword /add  
net localgroup administrators newuser01 /add**</p>

### Step 4 – Revert your Changes while logged in 

Since we are already on the machine and since we have reset the admin password, we can already revert the changes we have made. We simply need to start registry again and delete the key we have created under **HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Option**

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/vzUimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/vzUimage.png)

Wait a few minutes and normally the **standard Login shell** will be displayed.

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/scaled-1680-/M0eimage.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2025-03/M0eimage.png)

At this stage, you can try to login into your system with the newly password you have set and you can perform whatever action is needed to restore services on this specific machine.