Edit the OS registry in WinPE
If the operating system does not boot due to registry errors, you need to access the registry and fix the error.
-
Open
cmd. -
Open Registry Editor. It displays the state of the WinPE boot environment registry:
regedit -
In the list on the left, select
HKEY\_LOCAL\_MACHINE. -
In the File menu, select Load hive.
-
In the dialog box, navigate to the directory where the system and registry files are located; this is usually
C:\Windows\System32\config. -
Select a file named system or software.
-
Enter the name of the hive under which it will be mounted to the
HKEY\_LOCAL\_MACHINEsection, for exampleMountedSYSTEM. The hive name must not match existing hives inHKEY_LOCAL_MACHINE. -
Click Open. The registry hive will appear in the section.
-
Find and edit the required parameter.
-
Click File and select Unload hive. The changes will be saved to the registry.
-
Restore the previous server boot template or reboot the server from the OS. When rebooting the server from the OS, the boot template will automatically change to the one that was set before changing the server boot template.