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

Win7 Windows Update 更新失敗重複安裝?清除 SoftwareDistribution\DataStore 快取資料夾徹底解決

編輯:Win7 系統應用技巧

Win7 Windows Update 明明安裝成功,卻重複提示安裝同一更新、或安裝失敗、歷程記錄滿是錯誤碼。主因是 C:\Windows\SoftwareDistribution\DataStore 快取資料庫損壞/髒資料。停用服務 → 刪除 DataStore 內容 → 重啟服務,即可重建乾淨快取,解決重複/失敗問題。

Windows Update 失敗記錄

修復步驟

  1. 以系統管理員身分開啟 CMD (Win 搜尋 cmd → 右鍵 → 「以系統管理員身分執行」)。
  2. 停用 Windows Update 服務:
    net stop wuauserv
  3. 開啟資料夾選項:控制台 → 「資料夾選項」→ 「檢視」→ 勾選「顯示隱藏的檔案、資料夾及磁碟機」→ 取消勾選「隱藏受保護的作業系統檔案」→ 「是」→ 「確定」。
  4. 開啟資源管理器,進入:
    C:\Windows\SoftwareDistribution\DataStore
  5. 刪除 DataStore 資料夾內所有檔案與子資料夾 (按 Ctrl+A 全選 → Delete)。
  6. 重新啟用 Windows Update 服務:
    net start wuauserv
  7. 開啟 Windows Update 重新檢查更新,快取將自動重建,問題解決。

指令版一鍵執行 (CMD 管理員)

net stop wuauserv
del /f /s /q C:\Windows\SoftwareDistribution\DataStore\*
net start wuauserv

補充說明

  • SoftwareDistribution\Download 存放下載的更新檔案,不要刪除 (除非磁碟空間極度不足),否則需重新下載。
  • 此法適用 Win7/8/8.1/10 (路徑相同)。
  • 若仍失敗,嘗試執行 sfc /scannow、DISM /Online /Cleanup-Image /RestoreHealth (Win8+),或使用 Microsoft 官方「Windows Update 疑難排解工具」。
Copyright © Windows教程網 All Rights Reserved