本帖最后由 sairen139 于 2023-3-25 04:18 编辑
PE和正常系统离线添加WimFltr驱动所需的文件和注册表片段尤其适合把pe放硬盘上使用,优势是挂载wim工具包不会消耗丝毫内存!
离线给PE和正常系统添加wimfltr驱动的通用system注册表片段如下所示(需要把system注册表配置文件挂载成sys离线导入):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\sys\ControlSet001\Services\WimFltr]
"Type"=dword:00000002
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"Tag"=dword:00000002
"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.inf,%WimFltrServiceName%;WimFltr"
"Group"="FSFilter Compression"
"DependOnService"=hex(7):46,00,6c,00,74,00,4d,00,67,00,72,00,00,00,00,00
"Description"="@wimfltr.inf,%WimFltrServiceDescription%;Windows Image Mini-Filter Driver"
"DebugFlags"=dword:00000001
[HKEY_LOCAL_MACHINE\sys\ControlSet001\Services\WimFltr\Instances]
"DefaultInstance"="WimFltr Instance"
[HKEY_LOCAL_MACHINE\sys\ControlSet001\Services\WimFltr\Instances\WimFltr Instance]
"Altitude"="170500"
"Flags"=dword:00000000
然后把wimfltr.sys文件放到\Windows\System32\drivers文件夹里。把mt.exe和wimgapi.dll放到\Windows\System32\Wbem文件夹里,主要是避免wimgapi.dll覆盖System32里的同名文件引起dism功能的不正常!
重启进入pe或者正常系统,然后cmd命令行窗口输入mt E:\petools.wim E:\666 这样的类似语句即可发现挂载pe的wim工具包成功了(如果目标文件夹不存在mt会自动创建目标文件夹)!使用完如果想要卸载挂载就输入mt E:\666就卸载和删除了这个文件夹!配合imdisk虚拟内存盘mt B:\b 是最佳组合,而且imdisk可以修改p驱动ramos的VDF里的内容,imdisk驱动也算是物超所值!
|