wimtool是一款非常强大的镜像处理工具,同时它也是PE下加载wim镜像的必要软件,在制作PE时如果把它添加到PE里呢?其实很简单,几步就可以实现了。
第一步:先在WinPE内核中添加WIMFLTR.SYS、WIMFSF.SYS、WIMGAPI.DLL和FLTLIB.DLL 4个文件(sys放在drivers下,dll放在system32下)。
第二步:在WInPE注册表中导入以下内容:
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_FLTMGR