如何修复 Windows 更新服务未在 Windows 11/10 中运行
Windows Update 服务对于确保系统安全和平稳运行至关重要。但是,当尝试在 Windows 11 或 10 上运行 Windows Update 时,您可能会遇到一条错误消息,指出“其中一个更新服务未正常运行”。本文将指导您通过多种方法来解决此问题并使您的 Windows Update 服务恢复正常。
内置的 Windows 更新故障排除程序通常是解决更新相关问题的最快方法。
步骤一:按打开“设置”应用程序Windows key + I。
步骤2:导航到系统 > 疑难解答 > 其他疑难解答。
步骤3:在列表中找到“Windows Update”,然后单击旁边的“运行”。
第4步:按照屏幕上的说明完成故障排除过程。
疑难解答程序将尝试识别并修复在 Windows 更新服务中发现的任何问题。如果它不能解决问题,请继续使用下一个方法。
方法二:手动检查并启动Windows Update服务
有时,Windows 更新所需的服务可能被禁用或未运行。以下是检查和启动它们的方法:
步骤一:按打开服务管理器Windows key + R,输入“services.msc”,然后按 Enter。
步骤2:在列表中找到以下服务:
- Windows更新
- 后台智能传输服务 (BITS)
- 加密服务
- Windows 更新医疗服务
步骤3:对于每项服务,右键单击并选择“属性”。确保“启动类型”设置为“自动”,“服务状态”为“运行”。如果没有,请更改启动类型并单击“启动”来运行该服务。
第4步:进行这些更改后重新启动计算机。
重新启动后,尝试再次运行 Windows Update 以查看问题是否得到解决。
方法 3:清除 SoftwareDistribution 文件夹
SoftwareDistribution 文件夹有时可能会损坏,从而导致 Windows 更新问题。清除此文件夹通常可以解决问题。
步骤一:右键单击“开始”按钮并选择“Windows 终端(管理员)”,以管理员身份打开命令提示符。
步骤2:输入以下命令并在每个命令后按 Enter 键来停止 Windows Update 服务:
net stop wuauserv
net stop bits
net stop cryptsvc
步骤3:输入以下命令导航到 SoftwareDistribution 文件夹:
cd %systemroot%SoftwareDistribution
第4步:输入以下命令重命名文件夹:
ren SoftwareDistribution SoftwareDistribution.old
第5步:使用以下命令重新启动 Windows 更新服务:
net start wuauserv
net start bits
net start cryptsvc
第6步:关闭命令提示符并尝试再次运行 Windows 更新。
方法 4:执行系统文件检查
损坏的系统文件可能会导致各种问题,包括 Windows 更新问题。系统文件检查器工具可以帮助修复这些文件。
步骤一:以管理员身份打开命令提示符(如方法 3 中所述)。
步骤2:运行以下命令:
sfc /scannow
步骤3:等待该过程完成。可能需要几分钟。
第4步:如果发现并修复了任何损坏的文件,请重新启动计算机并再次尝试 Windows 更新。
方法 5:重置 Windows 更新组件
如果所有其他方法都失败,重置 Windows 更新组件通常可以解决持续存在的问题。
步骤一:以管理员身份打开命令提示符。
步骤2:输入以下命令停止 Windows 更新服务:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
步骤3:重命名软件分发文件夹:
ren C:WindowsSoftwareDistribution SoftwareDistribution.old
ren C:WindowsSystem32catroot2 catroot2.old
第4步:将 BITS 和 Windows Update 服务重置为默认安全描述符:
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)
第5步:重新注册 BITS 和 Windows 更新文件:
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll
第6步:重置Winsock:
netsh winsock reset
第7步:重新启动 BITS 和 Windows 更新服务:
推荐阅读:在 Android 开发者选项中运行服务:如何检查后台运行的应用程序?
net start bits
net start wuauserv
net start cryptSvc
net start msiserver
步骤8:重新启动计算机并尝试再次运行 Windows Update。
通过执行这些方法,您应该能够解决“Windows Update 服务未运行”问题。请记住定期更新您的系统,以确保最佳性能和安全性。如果您仍然遇到问题,请考虑向 Microsoft 支持人员或合格的 IT 专业人员寻求帮助。
