前几天重装系统后手动运行Windows Update更新,发现更新时总是报错,刚开始以为是微软被墙或者网络的问题,换了几个网络环境后发现还是不行。网上按照错误代码搜索,又是删文件又是重启服务什么的,完全没用。
功夫不负有心人,在微软官网上找到了重置Windows Update的方法,感觉应该有戏,照做后问题解决。
方法如下:
如何重置 Windows Update 更新组件?
如果您收到一个 Windows Update 错误,请尝试 常见 Windows Update 错误的解决方案。
自动重置 Windows 更新组件
若要自动重置 Windows 更新组件,请单击 “立即运行”,然后按屏幕说明操作。
Windows 8.1、Windows 8 和 Windows 7
自动诊断和修复 Windows 更新常见问题疑难解答程序可能会自动修复本文中描述的问题。 此疑难解答程序可以修复许多问题。了解更多 | 立即运行 |
---|
Windows Vista 和 Windows XP
自动诊断和修复 Windows Update 常见问题的疑难解答程序可能会自动修复本文所述的问题。 此疑难解答程序可以修复许多问题。了解更多 | 立即运行 |
---|
手动重置 Windows 更新组件
重要 请仔细遵循本部分中的步骤进行操作。对注册表修改不当可能会导致严重问题。在修改之前, 请备份注册表以便 在出现问题时进行还原。
若要重置 Windows 更新组件,请按照下列步骤操作:
-
打开命令提示符。为此,请根据您的 Windows 版本采取以下任一操作:
1.Windows 8.1 和 Windows 8:在“开始”屏幕中,从屏幕右边缘滑入以显示超级按钮,选择“搜索”,然后搜索 cmd。(或者,如果您使用的是键盘或菜单,可在“开始”屏幕中键入 cmd。)在搜索结果中,按住或右键单击“命令提示符”,然后选择“以管理员身份运行”。
2.Windows 7 和更低版本:按下 Windows 徽标键 + R,在“运行”框中键入 cmd,然后按 Enter。右键单击“cmd”,然后选择“以管理员身份运行”。 -
停止 BITS 服务、Windows Update 服务以及加密服务。为此,请在命令提示符处键入以下命令。请确保您在键入每条命令后按 Enter 键。
1.net stop bits
2.net stop wuauserv
3.net stop server
4.net stop cryptsvc -
删除 qmgr*.dat 文件。为此,请在命令提示符处键入以下命令,然后按 ENTER:
Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat” -
如果这您首次按照本文中的步骤尝试解决 Windows Update 问题,您可以从步骤 4 跳至步骤5。仅当您在遵循了除步骤 4 以外的所有步骤后仍无法解决 Windows Update 问题的时候执行步骤 4。(步骤 4 中的步骤由之前提及的 Fix it 解决方案的“主动”模式执行。)
-
重命名软件分发文件夹备份副本。为此,请在命令提示符处键入以下命令。请确保您在键入每条命令后按 Enter 键。
1.Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
2.Ren %systemroot%\system32\catroot2 catroot2.bak -
将 BITS 服务和 Windows Update 服务重置为默认的安全描述符。为此,请在命令提示符处键入以下命令。请确保您在键入每条命令后按 Enter 键。
1.sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) 复制代码
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) 复制代码
-
-
请在命令提示符处键入以下命令,然后按 ENTER:
cd /d %windir%\system32 -
重新注册 BITS 文件和 Windows Update 文件。为此,请在命令提示符处键入以下命令。请确保您在键入每条命令后按 Enter 键。
1.regsvr32.exe atl.dll
2.regsvr32.exe urlmon.dll
3.regsvr32.exe mshtml.dll
4.regsvr32.exe shdocvw.dll
5.regsvr32.exe browseui.dll
6.regsvr32.exe jscript.dll
7.regsvr32.exe vbscript.dll
8.regsvr32.exe scrrun.dll
9.regsvr32.exe msxml.dll
10.regsvr32.exe msxml3.dll
11.regsvr32.exe msxml6.dll
12.regsvr32.exe actxprxy.dll
13.regsvr32.exe softpub.dll
14.regsvr32.exe wintrust.dll
15.regsvr32.exe dssenh.dll
16.regsvr32.exe rsaenh.dll
17.regsvr32.exe gpkcsp.dll
18.regsvr32.exe sccbase.dll
19.regsvr32.exe slbcsp.dll
20.regsvr32.exe cryptdlg.dll
21.regsvr32.exe oleaut32.dll
22.regsvr32.exe ole32.dll
23.regsvr32.exe shell32.dll
24.regsvr32.exe initpki.dll
25.regsvr32.exe wuapi.dll
26.regsvr32.exe wuaueng.dll
27.regsvr32.exe wuaueng1.dll
28.regsvr32.exe wucltui.dll
29.regsvr32.exe wups.dll
30.regsvr32.exe wups2.dll
31.regsvr32.exe wuweb.dll
32.regsvr32.exe qmgr.dll
33.regsvr32.exe qmgrprxy.dll
34.regsvr32.exe wucltux.dll
35.regsvr32.exe muweb.dll
36.regsvr32.exe wuwebv.dll -
重置 Winsock。为此,请在命令提示符处键入以下命令,然后按 ENTER:
netsh winsock reset -
如果您使用的是 Windows XP,则需要配置代理设置。为此,请在命令提示符处键入以下命令,然后按 ENTER 键:
proxycfg.exe -d如果您运行的是其他版本的 Windows,请在命令提示符处键入以下命令,然后按 ENTER 键:
netsh winhttp reset proxy -
停止 BITS 服务、Windows Update 服务以及加密服务。为此,请在命令提示符处键入以下命令。请确保您在键入每条命令后按 Enter 键。
1.net start bits
2.net start wuauserv
3.net start appidsvc
4.net start cryptsvc -
仅限 Windows Vista:为此,请在命令提示符处键入以下命令,然后按 ENTER:
bitsadmin.exe /reset /allusers -
重新启动计算机。
原文地址:如何重置 Windows Update 更新组件?
重置完成后,调出运行对话框,在对话框内输入services.msc打开服务对话框,找到并启动以下服务:
Background Intelligent Transfer Service
Remote Procedure Call (RPC) Locator
Security Center
Windows Update
做完后就可以正常更新了。