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:
- Boot the server to WinPE.
Run the NTPWEdit utility by clicking on the corresponding icon at the top of the panel:
Specify the path to the SAM file
C:\Windows\System32\Config\SAMin the Path to SAM file field (as a rule, it is specified automatically when starting the program). Open it by clicking Open:
Select the required user. If the account is blocked due to expiration, unlock it using Unlock.
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.
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:
- Launch WinPE.
Type the following in the command prompt:
Registry Editor will open and display the status of the WinPE boot environment registry.
Select HKEY_LOCAL_MACHINE from the list on the left. On the File menu, click Load hive.
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.
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.
Find and edit the required parameter.
Click File and select Unload hive.
The changes will be saved in the registry.