有时,用户在使用Windows Update时会遇到问题。虽然有多种方法可以解决各种Windows 更新(Windows Update)问题,但如果这种情况经常发生,最好将Windows 更新(Windows Update)设置重置为默认设置。如果您的Windows 更新安装失败,(Windows Updates fail to Install)这会很有用。
我们已经了解了如何使用重置 Windows 更新组件工具将 Windows 更新重置(Reset Windows Update Components Tool)为默认值(reset Windows Update to default)。我们的Fix WU 实用程序重新注册所有与Windows 更新(Windows Update)相关的 dll 文件并将其他设置重置为默认值。但是,如果您想知道如何在Windows 11/10/8/7Windows Update组件单独重置为默认值,那么这篇文章就是您要找的。
(Reset Windows Update Components)在Windows 11/10重置 Windows 更新组件
Windows 11/10更新组件(Windows Update Components)重置为默认值所需采取的所有步骤的摘要:
- 停止 Windows 更新服务
- 删除qmgr*.dat文件。
- 刷新SoftwareDistribution和 catroot2 文件夹
- 将BITS(BITS)服务和Windows 更新(Windows Update)服务重置为默认安全描述符
- 重新注册(Re-register)BITS文件和Windows Update相关的DLL文件
- 删除不正确的注册表值
- 重置温索克
- 重新启动 Windows 更新服务。
1]停止Windows更新服务
首先,您需要停止后台智能传输、Windows 更新、加密服务(stop the Background Intelligent Transfer, Windows Update, Cryptographic Services)。这些服务基本上允许Windows下载(Windows)自动 Windows 更新(Automatic Windows Update)和其他Windows组件使用的所有文件和更新。当您的连接空闲时,它会使用网络连接的空闲带宽,并在后台静默下载文件。因此,最好在继续之前禁用BITS服务。(BITS)
为此,请在提升的命令提示符窗口中键入以下命令,并在键入每个命令后按 Enter。
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
2] 删除 qmgr*.dat 文件
接下来,您需要delete the qmgr*.dat files。为了重置Windows 更新(Windows Update)组件,您需要删除这些文件。为此,请在命令提示符处键入以下命令,然后按 Enter:
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
在这里值得一提的是,如果这是您第一次尝试按照本文中的步骤解决Windows 更新(Windows Update)问题,建议您跳过这一步并直接跳到下一步。尽管尝试了文章中概述的所有步骤,但此步骤除外,因为该步骤是由Fix it Solution的“积极”模式执行的,但仅当您看不到解决方案时才应遵循该步骤进行故障排除。
3]刷新(Flush)SoftwareDistribution和 catroot2 文件夹
重命名(Rename)SoftwareDistribution和catroot2文件(catroot2)夹。为此,请在命令提示符处键入以下命令。确保(Make)在键入每个命令后按 Enter。
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
阅读(Read):Windows 更新不断自动禁用自身(Windows Update keeps disabling itself automatically)。
4]将BITS服务和Windows Update服务(Windows Update)重置(Reset)为默认安全描述符
为此,请在命令提示符处键入以下命令。确保(Make)在键入每个命令后按 Enter。
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
5]重新注册(Re-register)BITS文件和Windows Update相关的DLL文件
重新注册(Re-register)BITS文件和Windows Update相关的dll 文件,在命令提示符窗口中,键入以下命令。不要忘记在您键入每个命令后按Enter键。(Enter)
regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll
regsvr32.exe wudriver.dll
6]删除不正确的注册表值
打开注册表编辑器(Registry Editor)并导航到以下键:
HKEY_LOCAL_MACHINE\COMPONENTS
右键单击组件(COMPONENTS)。现在在右窗格中,如果存在以下内容,请删除它们:
- PendingXml 标识符
- 下一个队列条目索引
- AdvancedInstallersNeedResolving
重启你的电脑。
相关(Related):Windows Update 安装失败或无法下载(Windows Update fails to install or will not download)。
7]重置Winsock
它是一种技术规范,定义了Windows网络软件应如何访问网络服务,尤其是TCP/IP。Windows 操作系统(Windows OS)附带一个名为winsock.dll的(winsock.dll)动态链接库(Dynamic Link Library)( DLL ) 文件,该文件实现API并协调Windows程序和TCP/IP连接。由于(Due)某种原因,通常称为Winsock的(Winsock)Windows 套接字(Windows Sockets)可能会损坏。因此,用户在建立与互联网(Internet)的连接时可能会遇到困难。因此,有必要修复Winsock通过重置它。
要重置 Winsock(Reset Winsock),请在命令提示符窗口中键入以下命令,然后按 Enter:
netsh winsock reset
提示(TIP):重置 Windows 更新工具将自动将设置和组件恢复为默认值。
8]重新启动Windows更新服务
完成所有操作后,重新启动BITS服务、Windows Update服务和Cryptographic服务。为此,请切换回命令提示符并输入以下命令。同样(Again),请确保在键入每个命令后按 Enter。
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
最后,确保您已在计算机上安装了最新的 Windows更新代理(Update Agent)。
重新启动计算机以完成该过程。
Windows 更新疑难解答基本上自动化了整个手动过程,并帮助您通过单击修复Windows更新(Windows Update)问题。
How to reset Windows Update components in Windows 11/10
At times, users exрerience trouble using Windows Update. While there arе several ways to troubleshoot various Windows Update issuеs, if this happens frequently, it would be a good idea to reset Windows Update settings to defаult. Thiѕ can be useful if your Windows Updates fail to Install.
We have already seen how to reset Windows Update to default using the Reset Windows Update Components Tool. Our Fix WU Utility re-registers all Windows Update related dll files and resets other settings to default. But if you want to know how to manually reset each Windows Update component individually to default in Windows 11/10/8/7, then this post is what you are looking for.
Reset Windows Update Components in Windows 11/10
Here is the summary of all the steps you need to take to reset Windows Update Components to defaults in Windows 11/10:
- Stop Windows Update Services
- Delete the qmgr*.dat files.
- Flush the SoftwareDistribution and catroot2 folders
- Reset the BITS service and the Windows Update service to the default security descriptor
- Re-register the BITS files and the Windows Update related DLL files
- Delete incorrect Registry values
- Reset Winsock
- Restart Windows Update Services.
1] Stop Windows Update Services
First you will need to stop the Background Intelligent Transfer, Windows Update, Cryptographic Services. The services basically allow Windows to download all files and update that are used by Automatic Windows Update and other Windows components. It uses the idle bandwidth of network connection when your connection is idle and silently downloads files in the background. It is, therefore, the best practice to disable the BITS service before proceeding.
To do so, in an elevated command prompt window, type the following commands and press Enter after you type each command.
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
2] Delete the qmgr*.dat files
Next, you need to delete the qmgr*.dat files. In order to reset Windows Update components, you will need to delete the files. To do this, at a command prompt, type the following command, and then press Enter:
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
It’s worth mentioning here that if this is the first time you are trying to resolve your Windows Update issues by following the steps in this post, it is advisable to skip this very step and jump directly to the next step. The step should only be followed for troubleshooting when you see no solution in sight despite trying all steps outlined in the article except this step since the step is performed by the “Aggressive” mode of the Fix it Solution.
3] Flush the SoftwareDistribution and catroot2 folders
Rename the SoftwareDistribution and catroot2 folders. To do this, at a command prompt, type the following commands. Make sure that you press Enter after you type each command.
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
Read: Windows Update keeps disabling itself automatically.
4] Reset the BITS service and the Windows Update service to the default security descriptor
To do this, at a command prompt, type the following commands. Make sure that you press Enter after you type each command.
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)
Now, in the command prompt window that is opened, type the following command, and then press Enter:
cd /d %windir%\system32
5] Re-register the BITS files and the Windows Update related DLL files
Re-register the BITS files and the Windows Update related dll files, in the command prompt window, type the following commands. Do not forget to hit the Enter key after every command you type.
regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll
regsvr32.exe wudriver.dll
6] Delete incorrect Registry values
Open Registry Editor and navigate to the following key:
HKEY_LOCAL_MACHINE\COMPONENTS
Right-click COMPONENTS. Now in the right-pane, delete the following if they exist:
- PendingXmlIdentifier
- NextQueueEntryIndex
- AdvancedInstallersNeedResolving
Restart your computer.
Related: Windows Update fails to install or will not download.
7] Reset Winsock
It is a technical specification that defines how Windows network software should access network services, especially TCP/IP. Windows OS comes with a Dynamic Link Library (DLL) file called winsock.dll which implements the API and coordinates Windows programs and TCP/IP connections. Due to some reason, Windows Sockets popularly referred to as Winsock may get corrupted. As such, a user may experience difficulty in establishing a connection to the Internet. It, therefore, becomes necessary to repair Winsock by resetting it.
To Reset Winsock, in the command prompt window, type the following command, and then press Enter:
netsh winsock reset
TIP: Reset Windows Update Tool will restore settings & components to default automatically.
8] Restart Windows Update Services
Once all is done, restart the BITS service, the Windows Update service, and the Cryptographic service. To do this, switch back to the command prompt and enter the following commands. Again, make sure that you press Enter after you type each command.
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
Finally, make sure that you have installed the latest Windows Update Agent on your computer.
Restart your computer to complete the process.
The Windows Update Troubleshooter basically automated the entire manual process and helps you fix Windows Update problems in a click.