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

Windows 7 WinSxS 資料夾瘦身:連結重導向移動至非系統盤釋放空間

編輯:Win7 系統應用技巧

WinSxS:元件存放區,動不得卻佔空間

C:\Windows\WinSxS 存放系統元件多版本、支援並存、回滾、修復。動輒 5-10GB,絕不可直接刪除檔案,否則系統損毀。但可透過符號連結重導向將整個資料夾移至大容量分區。

前置工具:PendMoves + MoveFile

下載 PendMoves 和 MoveFile → 解壓至 C:\Windows\System32

操作步驟(需管理員權限 CMD)

  1. 建立連結:
    cd \windows
    mklink /X winsxs.link winsxs.moved
  2. 取得 WinSxS 完全控制權:
    總管 → C:\Windows\WinSxS 右鍵 → 內容 → 安全性 → 進階 → 擁有者 → 編輯 → 選 Administrators → 勾選「取代子容器與物件擁有者」 → 確定
  3. 排程重命名(下次重開機生效):
    movefile C:\Windows\winsxs C:\Windows\winsxs.moved
    movefile C:\Windows\winsxs.link C:\Windows\winsxs
  4. 重開機 → 系統啟動時自動完成重命名,winsxs 變為指向 winsxs.moved 的連結
  5. 將 C:\Windows\winsxs.moved 完整複製至目標分區(如 D:\Windows\winsxs)
  6. 驗證:總管進入 C:\Windows\winsxs 顯示連結圖示,屬性確認目標為 D 盤路徑

風險與注意

  • 操作失誤導致系統無法啟動 → 需 PE 環境修復連結
  • Windows Update/服務包安裝可能失敗(路徑解析問題)
  • 建議虛擬機先測試,確認無誤再套用實體機
  • 現代大容量 SSD(256GB+)下此操作效益有限,風險大於收益

替代方案:DISM 清理元件存放區

管理員 CMD:Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
移除取代元件、重設基準版本,可釋放 1-3GB,官方支援、零風險。

結語

WinSxS 瘦身屬進階高風險操作。優先使用 DISM 官方清理;確須移動請嚴格遵循流程、完整備份、虛擬機驗證。空間壓力大時,擴充系統盤或增設 SSD 才是正解。

Copyright © Windows教程網 All Rights Reserved