整個過程
C:\Users\user>DISM.exe /Online /Cleanup-image /Restorehealth
部署映像服務與管理工具
版本: 10.0.26100.1150
映像版本: 10.0.26100.3194
[==========================100.0%==========================]
錯誤: 0x800f081f
找不到來源檔案。
使用 [來源] 選項來指定還原該功能時所需之檔案位置。如需有關指定來源位置的詳細資訊,請參閱 https://go.microsoft.com/fwlink/?LinkId=243077。
在 C:\WINDOWS\Logs\DISM\dism.log 中可找到 DISM 記錄檔
ChatGPT 診斷
錯誤 0x800f081f 表示 DISM 無法找到所需的來源檔案來修復 Windows 映像。這通常發生於系統缺少必要的 Windows 組件或 Windows 更新已損壞。以下是幾種解決方法:
方法 1:使用 Windows 安裝映像作為來源
掛載 Windows ISO:
- 下載與你目前 Windows 版本匹配的 ISO 檔案(例如從 Microsoft 官方網站 下載)。
- 以 檔案總管 右鍵點擊 ISO 檔案並選擇「掛接」。
找到 install.wim
或 install.esd
檔案:
- 進入掛載的虛擬光碟機(如
D:\
)。
- 瀏覽到
D:\sources\
資料夾,確認有 install.wim 或 install.esd。
執行修復命令(根據你的安裝檔案選擇對應指令):
方法 2:啟用 .NET Framework
部分系統因 .NET Framework 3.5
缺失而出現此錯誤,可手動啟用:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
如果 D:\sources\sxs
目錄不存在,請確保你掛載的 ISO 為與你 Windows 版本一致的官方映像。
方法 3:使用 Windows Update 作為來源
如果你無法取得 install.wim
或 install.esd
,可以強制 DISM 透過 Windows Update 下載修復檔:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\Windows\WinSxS /LimitAccess
或:
DISM /Online /Cleanup-Image /RestoreHealth
⚠️ 注意:此方法需要 網路連線,且 Windows Update 服務必須啟用。
方法 4:使用 SFC 工具
如果 DISM 仍然無法修復,你可以嘗試執行 sfc /scannow
:
sfc /scannow
這會掃描並自動修復 Windows 損壞的系統檔案。
方法 5:重新安裝 Windows Update
有時候 Windows Update 組件故障會導致此問題,你可以重新註冊 Windows Update 組件:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
這會清除 Windows Update 快取,然後你可以重新執行 DISM 命令。
方法 6:升級修復 Windows
如果上述方法都無法解決,最後的選擇是執行「就地升級修復」,即下載 Windows 10/11 ISO,然後執行「升級」安裝,不影響現有應用程式與資料:
- 下載 官方 Windows 安裝程式 並掛載 ISO。
- 執行
setup.exe
並選擇「保留個人檔案和應用程式」。
- 讓系統進行修復安裝。
總結
如果你遇到 錯誤 0x800f081f,建議依序嘗試:
- 使用 Windows ISO 作為來源(最佳解法)。
- 啟用 .NET Framework 3.5(如果適用)。
- 使用 Windows Update 下載修復檔。
- 執行
sfc /scannow
修復系統檔案。
- 重置 Windows Update 組件。
- 就地升級修復 Windows(最後手段)。
如果你有進一步的錯誤訊息或無法執行特定步驟,請回報給我!