Wimtool is a very powerful mirror processing tool, but also it is the necessary software to load the WIM image under PE, when making PE if it is added to PE? In fact, very simple, a few steps can be achieved.
First step: Add Wimfltr.sys, WIMFSF in the WinPE kernel first. SYS, Wimgapi. DLL and FLTLIB.DLL 4 files (SYS is placed under drivers and DLLs are placed under System32).
Step two: In the WinPE registry, import the following:
Windows Registry Editor Version 5.00
[Hkey_local_machinepecontrolset001servicesfltmgr]
"Description" = "File System Filter Manager Driver"
"DisplayName" = "Fltmgr"
"ErrorControl" =dword:00000001
"Group" = "Fsfilter Infrastructure"
"ImagePath" =hex (2): 73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,
72,00,69,00,76,00,65,00,72,00,73,00,5C,00,66,00,6C,00,74,00,6D,00,67,00,72,
00,2e,00,73,00,79,00,73,00,00,00
"Start" =dword:00000000
"Type" =dword:00000002
"Tag" =dword:00000001
"Attachwhenloaded" =dword:00000001
[Hkey_local_machinepecontrolset001enumrootlegacy_fltmgr]
"Nextinstance" =dword:00000001
[hkey_local_machinepecontrolset001enumrootlegacy_fltmgr000]
"Service" = "Fltmgr"
"Legacy" =dword:00000001
"ConfigFlags" =dword:00000000
"Class" = "Legacydriver"
"Classguid" = "{8ecc055d-047f-11d1-a537-0000f8753ed1}"
"DeviceDesc" = "Fltmgr"
[Hkey_local_machinepecontrolset001serviceswimfltr]
"Type" =dword:00000002
"Start" =dword:00000003
"ErrorControl" =dword:00000001
"Tag" =dword:00000004
"ImagePath" =hex (2): 73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,77,00,69,00,6d,00,66,00,6c,00,74,
00,72,00,2e,00,73,00,79,00,73,00,00,00
"DisplayName" = "wimfltr"
"Group" = "Fsfilter Compression"
"DependOnService" =hex (7): 46,00,6c,00,74,00,4d,00,67,00,72,00,00,00,00,00
"Dependongroup" =hex (7): 00,00
"Description" = "Windows Image mini-filter Driver"
"DebugFlags" =dword:00000001
[Hkey_local_machinepecontrolset001serviceswimfltrinstances]
"Defaultinstance" = "wimfltr Instance"
[Hkey_local_machinepecontrolset001serviceswimfltrinstanceswimfltr Instance]
"Altitude" = "170500"
"Flags" =dword:00000000
[Hkey_local_machinepecontrolset001serviceswimfltrsecurity]
"Security" =hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,
00,18,00,FD,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINEPECONTROLSET001SERVICESWIMFSF]
"DisplayName" = "Windows Imaging File System Filter Driver"
"Group" = "Fsfilter Compression"
"ErrorControl" =dword:00000001
"Start" =dword:00000000
"Type" =dword:00000002
"DependOnService" =hex (7): 46,00,6c,00,74,00,4d,00,67,00,72,00,00,00,00,00
"ImagePath" =hex (2): 73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,
72,00,69,00,76,00,65,00,72,00,73,00,5C,00,77,00,69,00,6D,00,66,00,73,00,66,
00,2e,00,73,00,79,00,73,00,00,00
"Tag" =dword:00000001
"Dependongroup" =hex (7): 00,00
"Description" = "Windows Imaging File System Filter Driver"
[Hkey_local_machinepecontrolset001serviceswimfsfinstances]
"Defaultinstance" = "WIMFSF Instance"
[HKEY_LOCAL_MACHINEPECONTROLSET001SERVICESWIMFSFINSTANCESWIMFSF Instance]
"Altitude" = "161000"
"Flags" =dword:00000000
The PE is repackaged, and the tool can be used to enter PE.