Usually, if we encounter serious problems with Windows 10 and cannot access the system, we usually enter the WinRE environment to fix it. However, there are many inconveniences in the actual use, such as: the steps to enter the repair environment are cumbersome, and you need to enter the current account password to enter; you can only use the command prompt after entering, etc. In order to make the WinRE environment more convenient to use, we can modify it manually.
Why is it so troublesome? Learn about WinRE
As a system repair tool, the operation in WinRE environment has certain danger, so Microsoft has made certain restrictions on the operation of WinRE for security reasons: 1.
1. By default, WinRE will not appear in the multiple boot menus, and can only be accessed by clicking “Change defaults or other options → Troubleshoot → Advanced Options” in the boot menu after booting (Figure 1). For single system users, the way to enter is more complicated because the boot screen does not appear. 2.
2. WinRE loads the system repair program (X:sourcesRecEnv.exe) by default after startup, instead of the common PE-like desktop form. 3.
3. To ensure the security of the system, WinRE repair environment has forced authentication enabled by default, and will ask for login account and password when entering.
● Do-it-yourself modification to make WinRE easier to use
1. Add WinRE to the BCD boot menu
The main file of WinRE Repair Environment is actually the “WinRE.wim” file, so we just need to add the corresponding startup item of the “WinRE.wim” file to the BCD menu of the system. Here is how to do it by copying the WinRE startup file.
Start a command prompt window and type “reagentc /info”, enter and the current location of the “WinRE.wim” file will be displayed. Here we can see that the “WinRE.wim” file on my computer is located in “harddisk0partition2RecoveryWindowsRE”, i.e. “The first hard disksecond partitionRecoveryWindowsRE” (Figure 2).
Since the partition where the WinRE.wim file is located is hidden and cannot be accessed directly by default, Bootice.exe can be used to assign a disk letter to it (assume H:), then open “H:RecoveryWindowsRE” and copy the Winre.wim and boot.sdi file copied to F: spare (Figure 3).
Return to the main interface of Bootice.exe, switch to the “BCD Edit” tab. Click “Add→New WIM Boot Item”, select the first disk F of the boot disk and boot partition. Click the BOOT button after “SDI file”, select the above disk and partition in the opened window, set the menu name to “DIY Windows Recovery Environment”, other settings will be set by default. Click “Save Global Settings” to exit (Figure 4). 2.
Change the WinRE startup program
As mentioned above, you need to enter the account and password to enter the recovery environment and there is no graphical interface, so you can solve these problems by editing the Winre.wim. In WinRE repair environment, the startup interface program is configured through the “winpeshl.ini” file, which will load the program specified after “AppPath=” after entering the system, so we just need to add the So we just need to add the specified GUI program afterwards, so that we can use the GUI after entering WinRE. However, it should be noted that the programs added here need to meet certain requirements, firstly, the version should be consistent with the current system (for example, x64 systems need to use For x64 programs), and secondly, the program must be able to run normally in the WinRE repair environment (you can first enter WinRE for testing). Since now we mostly use 64-bit operating systems, here we add the 64-bit 7-Zip Manager as an example of a graphical interface, which is both free and uses an Explorer-like interface, which is convenient for graphical management of files. Of course, you can also choose some professional explorer software, such as TocalCommand, A43, etc. The program you choose just needs to meet the above requirements.
First, install the 64-bit 7-Zip on your system, then go to http://www.chuyu.me/zh-Hans/下载 and download “dism++”. After starting “dism++” click “File → Mount Image”, select “F:winre.wim” (i.e. the above copied file) as the image file, load The directory is “D:winre” (please create the directory in D: disk first), click “OK” (Figure 5).
After successfully loading the image file, use Notepad to open “D:winreWindowsSystem32winpeshl.ini”, modify and save it in the format shown in the figure (Figure 6).
Return to Dism++ interface, click “File→Save Image” and “Uninstall Image” in turn. When we need to use the WinRE repair environment, restart the system and select the “DIY Windows Recovery Environment” menu in the Multiboot interface (Figure 7).
The computer will then load the “F:winre.wim” file, which will automatically open the 7-Zip Compression Manager interface after successfully completing the loading of the file. We can use it like Explorer, such as extracting files, copying files, running the repair program (just expand “X:sourcesRecEnv.exe” in the window and run it), etc. (Figure 8).