Using Windows PE on a Server

Windows PE (WinPE) is a minimal Windows OS with limited services that launches from the server’s memory. It is primarily used for troubleshooting, restoring, and deploying Windows.

Learn more about booting to Windows PE.

Reset and Restore Your Password

The NTPWEdit utility built into the WinPE image is used for restoring the password:

  1. Boot the server to WinPE.
  2. Run the NTPWEdit utility by clicking on the corresponding icon at the top of the panel:

  3. Specify the path to the SAM file C:\Windows\System32\Config\SAM in the Path to SAM file field (as a rule, it is specified automatically when starting the program). Open it by clicking Open:

  4. Select the required user. If the account is blocked due to expiration, unlock it using Unlock.

  5. Click Change password, enter new password and confirm it. Click OK:

    Please note that the utility allows you to leave the password field empty, but we do not recommend doing this, because according to the Windows security policy settings, an empty password makes it impossible to connect remotely via RDP. Also, if there is an empty password, it cannot be changed using NTPWEdit — it will be impossible to change it if you don’t have access to the server through the KVM console.

  6. Click Save changes.

Now you can boot back into the OS and use the new password for authorization.

Editing the OS Registry

If the operating system couldn’t be loaded because the registry file contains errors, then you need to access the registry and fix them.

Follow these steps to edit the registry:

  1. Launch WinPE.
  2. Type the following in the command prompt:

    regedit

    Registry Editor will open and display the status of the WinPE boot environment registry.

  3. Select HKEY_LOCAL_MACHINE from the list on the left. On the File menu, click Load hive.

  4. In the dialog box, navigate to the directory where the system and registry files are located (in most cases this is C:\Windows\System32\config). Select the file named system or software.

  5. Enter the name that the loaded branch will be mounted to the HKEY_LOCAL_MACHINE section with and click Open. The registry branch will appear in the section.

  6. Find and edit the required parameter.

  7. Click File and select Unload hive.

The changes will be saved in the registry.