Windows系統更新錯誤代碼疑難雜症及其解決方案,一鍵腳本解決 0x80070003、0x80240034

一鍵腳本清理升級目錄

適用於 0x80070003
保存爲bat直接右鍵管理員允許

REM back intel tran and windows update
pause
sc config BITS start= delayed-auto
net stop BITS
net stop wuauserv
rd /s/q "%systemroot%\SoftwareDistribution\"
rd /s/q "%systemroot%\system32\catroot2"
net start wuauserv
net start BITS

REM u have to restart

修復系統

適用於 0x80240034

sfc /scannow

如果有修復不了的,試試通過dism在線修復

DISM /Online /Cleanup-Image /RestoreHealth

官方文檔:https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e

官方幫助頁

修復 Windows 更新問題
適用於: Windows 8.1 Windows 10 Windows 7

此分佈指南有什麼作用?

此分步指南提供的步驟可修復 Windows 更新的問題,例如安裝更新時掃描所需的時間長或錯誤代碼。

一般錯誤代碼

此分步指南中的步驟應該有助於解決所有 Windows 更新錯誤和其他問題。 例如,常見的錯誤代碼如下: 0x80073712、0x800705B4、0x80004005、0x8024402F、0x80070002、0x80070643、0x80070003、0x8024200B、0x80070422、0x80070020。 但是,你不需要搜索具體的錯誤進行解決。 此處提供的步驟應修復 Windows 更新過程中出現的任何錯誤。....

官網鏈接:修復 Windows 更新錯誤
https://support.microsoft.com/zh-cn/help/10164/fix-windows-update-errors

官方說至少要有 20GB 才能確保有足夠空間更新

沒有解決的

最近在更新 Windows 11, version 22H2 Insider Preview 10.0.22598.100 (ni_release)
安裝重啓到一半提示失敗,然後開始回滾,最後系統更新裏顯示 0x80070002

安裝預覽版鏡像後無法檢測到預覽版更新的解決方案

註冊表定位到:

計算機\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability

把EnablePreviewBuilds改爲十六進制的1或2

把Ring改爲WIF                  (WIF是指Windows insider Fast)

然後點設置裏的預覽計劃就可以更改了,更改之後註冊表會變成這樣:
image
附上原文鏈接 https://answers.microsoft.com/zh-hans/insider/forum/insider_wintp-insider_install/獲取insider/0e8e95e7-6922-405f-99ed-592c8ed3ea29

結果成功了,然後就可選擇預覽計劃了:
image

更改之後如果成功了,就可以直接點檢查更新了
image

如果還不行,多試幾次
已由管理員,更新不了

PS:這個更新還關乎Windows功能裏的啓用和關閉,例如啓用.NET 3.5 安裝字體功能包就需要用到這個

安裝預覽版鏡像後使用Windows功能安裝.Net3.5提示錯誤代碼:0x800F0950 的可用本貼方案解決
附上:

強行上車預覽版通道(win11硬件不支持也可以上
abbodi1406/offlineinsiderenroll: OfflineInsiderEnroll - A script to enable access to the Windows Insider Program on machines not signed in with Microsoft Account (github.com)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章