萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 伺服器教學

Windows Update 錯誤 0x80245003 解決方案:重置 SoftwareDistribution 資料夾

錯誤現象

Windows Update 頁面顯示:

錯誤號碼:0x80245003
Windows Update 遇到錯誤,無法顯示請求的頁面。

根本原因

`%Windir%\SoftwareDistribution\WuRedir` 目錄下的 `Wuredir.cab` (重定向器識別碼) 損毀或版本不匹配,導致 Windows Update 服務無法正確解析下載來源。

解決步驟 (命令列 / 批次檔)

  1. 以**系統管理員身分**開啟「命令提示字元」 (Win+X → 命令提示字元 (系統管理員) / Windows Terminal (Admin))。
  2. 依序執行以下指令:
net stop wuauserv
rmdir /s /q %windir%\SoftwareDistribution\WuRedir
net start wuauserv

圖文對照:

以系統管理員身分執行 CMD
net stop wuauserv
rmdir 確認 Y
輸入 Y 確認刪除
net start wuauserv

指令詳細說明

指令作用
`net stop wuauserv`停止 Windows Update 服務,釋放目錄鎖定
`rmdir /s /q %windir%\SoftwareDistribution\WuRedir`遞迴安靜刪除 `WuRedir` 目錄及所有內容 (`/s` 遞迴、`/q` 安靜模式不再逐一確認)
`net start wuauserv`重新啟動 Windows Update 服務,服務啟動時會自動重建乾淨的 `WuRedir` 目錄與 `Wuredir.cab`

進階修復 (若上述無效)

  1. 完整重置 SoftwareDistribution (更徹底,會清除下載快取、更新歷程):
    net stop wuauserv
    net stop bits
    ren %windir%\SoftwareDistribution SoftwareDistribution.old
    net start bits
    net start wuauserv
  2. 系統檔案修復:
    sfc /scannow
    DISM /Online /Cleanup-Image /RestoreHealth
  3. Windows Update 疑難排解工具:設定 → 更新與安全性 → 疑難排解 → 其他疑難排解 → Windows Update → 執行。
  4. 手動下載更新:前往 Microsoft Update Catalog 搜尋 KB 號手動安裝 `.msu` 套件。

預防與維護建議

  • 保持系統磁碟剩餘空間 > 20GB (更新需臨時空間)。
  • 定期執行 `sfc /scannow` 維護系統檔案完整性。
  • 企業環境建議部署 **WSUS** 或 **SCCM** 統一管理更新分發,避免單機直連微軟伺服器不穩定。
  • 若長期離線/隔離網路,需配置離線更新來源 (WSUS 離線同步 / Microsoft 更新目錄手動導入)。
⚠️ 注意:`rmdir` 指令中 `%windir%` 會自動展開為 `C:\Windows`,**請勿手動輸入 `C:\Windows` 以免拼寫錯誤**。整個過程約 1-2 分鐘,重啟服務後重新檢查更新即可恢復正常。
copyright © 萬盛學電腦網 all rights reserved