Windows 7 的 C:\Windows\WinSxS 資料夾會隨著更新、安裝軟體不斷膨脹,動輒佔用數 GB 甚至幾十 GB,導致系統磁碟空間緊張。雖然微軟強調此資料夾不可刪除(否則系統可能無法啟動),但我們可以透過「符號連結」將其移至其他分區,騰出 C 槽空間並保持系統正常運作。
C:\Windows\System32。cd \windows
mklink /X winsxs.link winsxs.moved
movefile C:\Windows\winsxs C:\Windows\winsxs.moved
movefile C:\Windows\winsxs.link C:\Windows\winsxs
重新開機後,將 C:\Windows\winsxs.moved 內所有內容複製到目標分區(如 D:\Windows\winsxs)。cd \windows
rmdir winsxs
mklink /X winsxs D:\windows\winsxs
重開機確認系統正常後,刪除 C:\Windows\winsxs.moved 資料夾。提醒:操作前請務必備份重要資料。若誤刪 WinSxS,可用安裝光碟啟動修復模式執行 sfc /scannow 修復系統檔案。