萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 電腦基礎知識 >  >> 電腦基本常識

在 WinPE 中整合 WIMTool 工具:載入 WIM 映像必要元件與註冊表設定

WIMTool (WIM 掛載/操作工具) 在 WinPE 中運行需特定驅動與註冊表項目。本文提供完整的檔案放置與註冊表匯入步驟,將 WIMTool 整合至自製 PE。

第一步:複製核心檔案至 PE 核心

  • WIMFLTR.SYS、WIMFSF.SYS → 放入 Windows\System32\Drivers\
  • WIMGAPI.DLL、FLTLIB.DLL → 放入 Windows\System32\

第二步:匯入註冊表項目 (離線載入 PE 登錄檔)

掛載 PE 登錄檔 (SOFTWARE, SYSTEM) 至 HKEY_LOCAL_MACHINE\pe 後,匯入以下註冊表內容 (關鍵服務:FltMgr、WimFltr、WimFsf):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\FltMgr]
"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_MACHINE\pe\ControlSet001\Enum\Root\LEGACY_FLTMGR]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Enum\Root\LEGACY_FLTMGR\0000]
"Service"="FltMgr"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000000
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="FltMgr"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr]
"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 Imaging Mini-Filter Driver"
"DebugFlags"=dword:00000001

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Instances]
"DefaultInstance"="WimFltr Instance"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Instances\WimFltr Instance]
"Altitude"="170500"
"Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Security]
"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_MACHINE\pe\ControlSet001\Services\WimFsf]
"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_MACHINE\pe\ControlSet001\Services\WimFsf\Instances]
"DefaultInstance"="Wimfsf Instance"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFsf\Instances\Wimfsf Instance]
"Altitude"="161000"
"Flags"=dword:00000000

第三步:重新封裝 PE

  • 卸載登錄檔,使用 DISM / oscdimg / MakeWinPEMedia 等工具重新生成 boot.wim 或 ISO。
  • 測試:進入 PE,命令列輸入 wimtool 或 dism /mount-wim 驗證功能正常。

現代替代方案

Windows 10/11 ADK 自帶的 DISM 已內建完整 WIM 掛載/操作功能 (dism /mount-wim, /commit-wim, /get-wiminfo 等),無需額外整合 WIMTool。建議直接使用 ADK 版 PE (WinPE 10/11) 獲得原生支援與最佳相容性。

copyright © 萬盛學電腦網 all rights reserved