C:\Windows\System32。cd /d C:\Windows
mklink /J winsxs.link winsxs.moved
# 建立目錄連結點 winsxs.link → winsxs.moved (目標尚不存在)
C:\Windows → 右鍵 winsxs → 「屬性」→「安全性」→「進階」movefile C:\Windows\winsxs C:\Windows\winsxs.moved
movefile C:\Windows\winsxs.link C:\Windows\winsxs
# 第一條:將原 winsxs 重命名為 winsxs.moved
# 第二條:將佔位連結點 winsxs.link 重命名為 winsxs (成為新的 winsxs 入口)
# 兩條命令均寫入 HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
shutdown -r -t 0
重啟後,C:\Windows\winsxs 已成為指向 winsxs.moved 的連結點,原內容實際在 winsxs.moved 中。
robocopy C:\Windows\winsxs.moved D:\Windows\winsxs /E /COPYALL /R:1 /W:1 /MT:8
# /E 含空目錄 /COPYALL 複製所有屬性 /MT:8 多執行緒加速
# 或使用 xcopy /E /H /K /O /X C:\Windows\winsxs.moved D:\Windows\winsxs\
# 再次以管理員 CMD
cd /d C:\Windows
rmdir winsxs # 刪除指向 winsxs.moved 的連結點
mklink /J winsxs D:\Windows\winsxs # 建立新連結點指向 D 盤實體目錄
shutdown -r -t 0
# 重啟後確認系統正常運行、Windows Update 可掃描安裝、SFC /SCANNOW 無錯誤
# 確認無誤後刪除舊殘留
rmdir /s /q C:\Windows\winsxs.moved
dir /a C:\Windows\winsxs 顯示 `D:\Windows\winsxsfsutil reparsepoint query C:\Windows\winsxs 確認重解析點標籤 0xA0000003 (目錄連結點)sfc /scannow 完整通過dism /online /cleanup-image /checkhealth 無錯誤| 風險 | 說明 |
|---|---|
| 啟動修復環境 (WinRE) 中連結點失效 | WinRE 掛載的系統盤路徑不同,D:\Windows\winsxs 可能不可訪問,導致修復失敗 |
| 功能更新 (大版本升級) 可能破壞連結點 | 升級前建議先移回 C 盤或備份映像 |
| 目標分區非固定磁碟 (USB/網路磁碟) | 啟動階段未掛載,系統無法找到 winsxs → 藍屏/無法進入桌面 |