Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

認識 WIM 映像檔與 DISM 工具捕獲/附加/查詢映像完整指令教學

編輯:Windows 7 系統介紹

WIM (Windows Imaging Format) 是 Vista 後採用的映像格式,安裝映像中 install.wim 含作業系統檔案,boot.wim 含 WinPE。Win8 起 DISM 內建 ImageX 功能,可直接操作 WIM。本文實戰示範捕獲目錄到 WIM、附加新版本、查詢映像資訊。

核心概念

  • WIM = 容器,可分割多個「索引」(映像),同一檔案僅儲存一次(單一執行個體存儲),節省空間。
  • install.wim:作業系統映像;boot.wim:WinPE 映像。

實戰範例:備份 D:\songs 到 D:\songs.wim

  1. 建立暫存目錄:md D:\Temp(避免預設暫存空間不足)。
  2. 以系統管理員執行 CMD,捕獲第一版:
    Dism /Capture-Image /ImageFile:D:\songs.wim /ScratchDir:D:\Temp /CaptureDir:D:\songs /Name:NO.1
  3. 新增檔案後捕獲第二版(附加):
    Dism /Append-Image /ImageFile:D:\songs.wim /ScratchDir:D:\Temp /CaptureDir:D:\songs /Name:NO.2
  4. 查詢映像資訊:
    Dism /Get-WimInfo /WimFile:D:\songs.wim

指令參數說明

  • /Capture-Image:建立新 WIM 並捕獲目錄。
  • /Append-Image:在現有 WIM 追加新索引。
  • /ScratchDir:指定暫存目錄(大型映像必須)。
  • /Name:索引描述名稱(可重複,建議唯一)。

系統備份注意

備份系統磁碟不可在運行中的系統內操作,需進入 WinPE/復原環境/另一作業系統執行 DISM,確保檔案一致性。

Copyright © Windows教程網 All Rights Reserved