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

Win8.1 使用 DISM 指令清理 WinSxS 元件存放區:徹底釋放更新備份空間

編輯:Win8 系統應用技巧

痛點:WinSxS 資料夾無限膨脹

Windows 更新機制會在 C:\Windows\WinSxS 保留每次更新的舊版元件以支援復原。隨時間累積,資料夾動輒佔用 5-10 GB 以上。以 Adobe Flash Player 為例,每月更新皆留下 amd64_adobe-flash-for-windows* 舊版資料夾。

WinSxS 內的 Flash 多版本殘留

解決方案:DISM 元件清理指令

Microsoft 官方提供 DISM 指令可移除已被取代的舊版元件,僅保留最新版,大幅縮減 WinSxS 體積。

操作步驟 (Win8.1 9600 64位元為例,Win8 同適用)

  1. 右鍵開始按鈕(或 Win+X)選「命令提示字元 (系統管理員)」。
  2. 開啟管理員命令提示字元 命令提示字元介面
  3. 輸入以下指令並按 Enter:
    dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
  4. 輸入 DISM 指令
  5. 等待處理完成(視元件數量耗時數分鐘)。
  6. DISM 執行中 DISM 完成

驗證成果

  1. 重新檢視 C:\Windows\WinSxS,舊版 Flash 資料夾已移除,僅保留最新版 Flash player for Win8.1 6.3.9600.16418。
  2. 清理後僅保留最新版

參數說明

  • /StartComponentCleanup:移除已取代元件(不含 ResetBase)。
  • /ResetBase:將最新版設為基準,徹底移除所有舊版,**之後無法解除安裝已安裝的更新**,請確認系統穩定後再執行。

結語

定期執行 dism /online /Cleanup-Image /StartComponentCleanup /ResetBase 可有效控制 WinSxS 體積,同樣適用於 Win8.1 GA 更新後的冗餘清理。操作前建議建立系統還原點以策安全。

Copyright © Windows教程網 All Rights Reserved