Yesterday, a buddy asked me how to make a Winpe. In fact, it is better to modify the Winpe by yourself. You can also learn it! Hey hey, when it comes to modification, the companion will take win7pe as an example. In fact, it is mainly the boot. wim, so we need to decompress the wim package first. There are a lot of software to decompress wim, suchImagex,Gimagex,High PressureBut considering that we will compress the modified items into wim, we recommend that youWindows AIK(Windows Deployment Tool), although this software is very troublesome, it can ensure that wim can be used every time, there will be no tragedy that a good file cannot be loaded because wim is incompatible.
Create a folder to release wim, run the windows deployment tool command prompt as administrator, and then enter Dism/Mount-Wim/WimFile: C: \ Users \ Huanr \ Desktop \ PE \ BOOT. wim/index: 1/MountDir: C: \ Users \ Huanr \ Desktop \ PE \ m
The first address is the location of wim, and the index is followed by the index of wim. The PE should have only one address, and the subsequent address is the location where wim is released.
The released wim is similar to the C drive for windows. If you change to a semi-finished product or finished PE, software such as PEcmd should be used to control the loading of third-party software and various system tools. You just need to find the configuration file. Generally, the pecmd pe has a PEcmd. ini in windows/system32 to control the software connection and basic configuration. You can modify it according to your habits and needs. If you don't understand it, you can find the PEcmd command on the Internet. It's very simple.
When using PEcmd to add a program, you must note that the added program must be a green version, preferably a single file version, or it may not run in PE.
If you want to add a driver, you can directly use windows AIK to add the driver. However, I personally feel that PE is used for maintenance. Adding a driver will greatly reduce the loading speed, so no driver is added to my PE.
After the modification, we need to complete wim. What should we do? First, we should turn off all the applications that open files in the mounted directory, including opening the resource browser of subfolders. Run Dism/Unmount-Wim/MountDir: C: \ Users \ Huanr \ Desktop \ PE \ m/commit. The address is the folder where you mount wim.
After completing the preceding steps, you need to re-create wim. Otherwise, the wim size will be larger than the total number of files in it. Therefore, execute imagex/export C: \ Users \ Huanr \ Desktop \ PE \ BOOT. wim 1 C: \ Users \ Huanr \ Desktop \ PE \ newBOOT. wim "Huanr win7PE", where the first address is the address of wim, followed by the number 1 is the index number, usually 1, if there are multiple indexes starting from 1, save the location and name of the new wim, and then execute the command. If the system prompts that imagex does not exist, go to the tools sub-folder under the windows AIK directory, copy the corresponding version of imagex to C: windwos \ system32, pay attention to 64-bit windows copy of amd64, 32-bit windows copy x86
Change the new wim name to boot. wim and replace the boot. wim in the original PE.