当安装 Windows 更新(problem installing Windows updates)出现问题时,Windows 将显示错误代码 0x80070005 。如果Windows无法激活或运行某些Office应用程序,您也可能会遇到此错误,尤其是在Windows更新之后。错误代码基本上告诉您Windows没有执行操作所需的文件或注册表权限。
我们重点介绍了Windows(Windows)错误代码 0x80070005的七种潜在故障排除解决方案。
1. 运行Windows 更新疑难解答(Windows Update Troubleshooter)
如果您在尝试安装Windows更新时收到 0x80070005 错误代码,请执行此操作。Windows 更新(Windows Update)疑难解答还可以修复更新期间的其他错误。
在 Windows 11 中,转到“设置”(Settings) > “系统(System)” > “疑难解答(Troubleshoot)” > “其他疑难解答(Other troubleshooters)” ,然后选择Windows 更新旁边的“运行”按钮。(Run)
如果您使用的是Windows 10计算机,请前往设置(Settings)>更新和安全(Update & Security)>疑难解答(Troubleshoot)>其他疑难解答(Additional troubleshooter)> Windows 更新(Windows Update),然后选择运行疑难解答(Run the troubleshooter)。
等待(Wait)疑难解答程序诊断出导致错误代码 0x80070005 的潜在问题,然后按照屏幕上的建议进行操作。
2. 扫描恶意软件和病毒
恶意软件和病毒通常会删除运行某些程序和安装(Malware)Windows更新所需的基本系统文件和注册表项。使用第三方软件扫描您的 PC 以查找恶意软件和病毒,或在(scan your PC for malware and viruses)Windows 安全(Windows Security)应用程序中打开实时保护。
转到设置(Settings)>隐私和安全(Privacy & security)> Windows 安全(Windows Security)>打开 Windows 安全(Open Windows Security)>病毒和威胁防护(Virus & threat protection)>管理设置(Manage settings)并打开实时保护(Real-time protection)。
在 Windows 10 中,前往设置(Settings)>更新和安全(Update & Security)> Windows 安全(Windows Security)>病毒和威胁防护(Virus & threat protection)>管理设置(Manage settings)并打开实时保护(Real-time protection)。
3.运行系统文件检查器
系统文件检查器(System File Checker)( SFC ) 是一个命令行工具,用于检查 Windows 中是否存在损坏、损坏和丢失的系统文件(checks for corrupt, damaged, and missing system files in Windows)。如果该工具找到任何内容,它将用新副本替换它们。
如果您因为重要的系统文件丢失或损坏而收到 0x80070005,那么运行SFC是解决问题的最佳选择。将您的计算机连接到互联网,然后按照以下步骤操作。
- 在Windows 搜索(Windows Search)栏中键入命令提示符并选择(command prompt)Run as administrator。
如果您的 PC 运行 Windows 8 或更高版本,Microsoft建议在运行系统文件检查器之前运行(System File Checker)部署映像服务(Deployment Image Servicing)和管理(Management)( DISM ) 工具。否则(Otherwise),如果您有Windows 7 PC ,请跳至步骤#3。(Step)
- 在终端中键入或粘贴DISM.exe /Online /Cleanup-image /Restorehealth并按Enter。
当您收到“还原操作成功完成”的成功消息时,运行系统文件检查器(System File Checker)(请参阅下一步)。
- 在终端中键入或粘贴sfc /scannow并按Enter。
等待(Wait)成功消息,关闭命令提示符(Command Prompt)窗口,然后重新运行应用程序/操作系统,抛出 0x80070005 错误。您可能需要重新启动计算机才能完成挂起的修复操作。
因此,在运行System File Checker(System File Checker)时请注意屏幕上的消息。
4. 更新 Windows 注册表
(Microsoft recommends updating the registry)如果更新Windows后在(Windows)Office应用程序中弹出错误代码 0x80070005,Microsoft 建议更新注册表。删除或损坏注册表中的任何项目都可能导致Windows出现其他问题。因此,请确保在执行更新之前备份 Windows 注册表。(back up the Windows Registry)
关闭所有Microsoft Office应用程序并执行以下步骤:
- 按Windows 键(Windows key)+ R ,在“运行”框中键入regedit ,然后选择“(regedit)确定(OK)” 。
- 展开HKEY_USERS文件夹,右键单击S-1-5-20文件夹,然后在上下文菜单中选择权限。(Permissions)
- 选择添加(Add)。
- 在对话框中输入您当前用户的姓名,选择Check Names,然后选择OK。
- 接下来,选择高级(Advanced)。这将打开注册表文件夹的高级安全设置(Advanced Security Settings)菜单。
- 在“权限”选项卡中,选择新创建的用户,然后选择编辑(Edit)。
- 选中完全控制(Full Control)框并选择确定(OK)。
- 选择网络服务(NETWORK SERVICE)并选择编辑(Edit)。
- 选中完全控制(Full Control)框并选择确定(OK)。
- 最后,选中Replace all child object permission entries with inheritable permission entries from this object,然后选择OK。
- 在确认提示中选择是。(Yes)
- 选择应用(Apply),然后选择确定(OK)。
关闭注册表编辑器(Registry Editor),重新打开Office应用程序并检查是否停止 0x80070005 错误代码。
- 按Windows 键(Windows key)+ R打开 Windows 运行框。
- 在对话框中输入C C:\Users\USERNAME\AppDataOK。
注意:(Note:)将C:替换为安装(C:)Windows的驱动器号。同样(Likewise),将USERNAME替换为您 PC 的用户名。
- 右键单击本地(Local)文件夹并在上下文菜单中选择属性。(Properties)
- 前往安全(Security)选项卡并选择编辑(Edit)。
- 选择添加(Add)。
- 在对话框中键入所有人,选择(Everyone)检查名称,(Check Names,)然后选择确定(OK)。
- 选择“所有人(Everyone)”,选中“完全控制”列中的“允许”框。(Allow)
- 选择应用(Apply),然后选择确定(OK)。
- 在Windows(Windows)设置权限时,您可能会多次收到“应用安全(Applying Security)性错误”。继续选择继续(Continue),直到过程结束。
- 选择确定(OK)关闭本地(Local)窗口的本地(Local)权限并重新安装Windows更新。
- 再次选择确定(OK)以保存更改。
5.检查您的防火墙设置
您可以通过配置SVCHOST(SVCHOST)(Windows服务的主机进程)绕过防火墙设置来解决 0x80070005 错误。
- 在Windows 搜索(Windows Search)栏中键入防火墙(firewall),然后在结果页面上选择防火墙和网络保护。(Firewall & network protection)
- 滚动到页面底部并选择允许应用程序通过防火墙(Allow an app through firewall)。
这会将您重定向到控制面板中的(Control Panel)Windows Defender 防火墙(Windows Defender Firewall)窗口。
- 选择更改设置(Change settings)。
- 选择允许其他应用程序(Allow another app)。
- 选择浏览(Browse)。
- 选择svchost并选择Open。
- 选择添加(Add)以继续。
- 确保检查Windows服务的(Services)主机进程(Host Process)的“私有(Private)”和“公共”列。
- 选择确定(OK)并再次尝试更新您的 PC。
6.执行干净启动
在 Windows 中执行干净启动(clean boot in Windows)有助于诊断启动错误、频繁的应用程序崩溃和Windows 更新(Windows Update)问题的原因。当您执行干净启动时,您的 PC 会暂时禁用非必要服务。这将有助于隔离和诊断在更新Windows(Windows)或运行Office应用程序时导致错误代码 0x80070005 的软件冲突。
在启动干净启动之前,请(Make)确保您已使用管理员帐户登录您的 PC。
- 在 Windows 搜索框中键入msconfig并以管理员身份运行系统配置。(System Configuration)
- 前往“服务(Services)”选项卡,选中“隐藏所有 Microsoft 服务(Hide all Microsoft services)”框并选择“全部禁用(Disable all)” 。
- 之后(Afterward),转到“启动”(Start-up)选项卡并选择“打开任务管理器”(Open Task Manager)。
- 右键单击列表中的程序并选择禁用(Disable)。对“启动(Startup)”选项卡中的所有应用程序执行此操作。
关闭任务管理器(Task Manager)并重新启动计算机以启动进入“干净”环境。如果您在干净启动过程后没有收到 0x80070005 错误,则意味着其中一个禁用的应用程序对错误负责。
7. 重置 Windows 更新组件
如果在尝试上述故障排除步骤后错误仍然存在,请重置Windows 更新代理的所有组件。(Windows Update)
- 在Windows 搜索(Windows Search)栏中键入命令提示符并选择(command prompt)Run as administrator。
- 在终端中键入或粘贴net stop wuauserv并按(net stop wuauserv)Enter。此命令将停止Windows 更新(Windows Update)服务。
- 接下来,键入或粘贴rd /s /q %systemroot%\SoftwareDistribution并按Enter。
- 最后,键入或粘贴net start wuauserv并按Enter以重新启动Windows Update服务。
关闭命令提示符(Command Prompt)窗口并检查您现在是否可以安装没有 0x80070005 错误代码的Windows 更新。(Windows Updates)
不得已:重置 Windows
(Reset Windows to factory settings)如果由于 0x80070005 错误仍无法安装Windows更新或运行Office应用程序,请将 Windows(Office)重置为出厂设置。
How To Fix Windows Error Code 0x80070005
Windows will display the error code 0x80070005 when there’s a problem installing Windows updates. You might also encounter the error if Windows cannot activate or run certain Office applications, particularly after a Windows update. The error code basically tells you that Windows doesn’t have the required files or registry permissions to execute an operation.
We highlight seven potential troubleshooting solutions to the Windows error code 0x80070005.
1. Run the Windows Update Troubleshooter
Do this if you’re getting the 0x80070005 error code when you’re trying to install a Windows update. The Windows Update troubleshooter can also fix other errors during an update.
In Windows 11, go to Settings > System > Troubleshoot > Other troubleshooters and select the Run button next to Windows Update.
If you have a Windows 10 computer, head to Settings > Update & Security > Troubleshoot > Additional troubleshooter > Windows Update and select Run the troubleshooter.
Wait for the troubleshooter to diagnose potential problems causing the error code 0x80070005 and follow the on-screen recommendations.
2. Scan for Malware and Viruses
Malware and viruses often delete essential system files and registry keys needed to run certain programs and install Windows updates. Use third-party software to scan your PC for malware and viruses or turn on real-time protection in the Windows Security app.
Go to Settings > Privacy & security > Windows Security > Open Windows Security > Virus & threat protection > Manage settings and toggle on Real-time protection.
In Windows 10, head to Settings > Update & Security > Windows Security > Virus & threat protection > Manage settings and turn on Real-time protection.
3. Run the System File Checker
The System File Checker (SFC) is a command-line tool that checks for corrupt, damaged, and missing system files in Windows. If the tool finds any, it replaces them with a fresh copy.
If you’re getting the 0x80070005 because a vital system file is missing or damaged, running the SFC is your best bet at fixing the problem. Connect your computer to the internet and follow the steps below.
- Type command prompt in the Windows Search bar and select Run as administrator.
If your PC runs Windows 8 or newer, Microsoft recommends running the Deployment Image Servicing and Management (DISM) tool before running the System File Checker. Otherwise, jump to Step #3 if you have a Windows 7 PC.
- Type or paste DISM.exe /Online /Cleanup-image /Restorehealth in the terminal and press Enter.
Run the System File Checker (see next step) when you get a success message that “The restore operation completed successfully.”
- Type or paste sfc /scannow in the terminal and press Enter.
Wait for a success message, close the Command Prompt window, and rerun the app/operating system, throwing off the 0x80070005 error. You might have to restart your computer to finish pending repair operations.
So, pay attention to the on-screen message when running the System File Checker.
4. Update the Windows Registry
Microsoft recommends updating the registry if the error code 0x80070005 pops up in an Office application after updating Windows. Deleting or damaging any item in the registry can cause other problems in Windows. So, ensure you back up the Windows Registry before performing the update.
Close all Microsoft Office applications and follow these steps:
- Press the Windows key + R, type regedit in the Run box, and select OK.
- Expand the HKEY_USERS folder, right-click the S-1-5-20 folder, and select Permissions in the context menu.
- Select Add.
- Type your name of the current user in the dialog box, select Check Names, and select OK.
- Next, select Advanced. That’ll open the Advanced Security Settings menu for the registry folder.
- In the “Permissions” tab, select the newly-created user, and choose Edit.
- Check the Full Control box and select OK.
- Select NETWORK SERVICE and select Edit.
- Check the Full Control box and select OK.
- Finally, check the Replace all child object permission entries with inheritable permission entries from this object and select OK.
- Select Yes on the confirmation prompt.
- Select Apply and then OK.
Close the Registry Editor, reopen the Office app and check if that stops the 0x80070005 error code.
- Press the Windows key + R to open the Windows Run box.
- Type C:\Users\USERNAME\AppData in the dialog box and select OK.
Note: Replace C: with drive letter where Windows is installed. Likewise, replace USERNAME with your PC’s username.
- Right-click the Local folder and select Properties in the context menu.
- Head to the Security tab and select Edit.
- Select Add.
- Type Everyone in the dialog box, select Check Names, and choose OK afterward.
- Select Everyone, check the Allow box in the “Full control” column.
- Select Apply and then OK.
- You might get an “Error Applying Security” a couple of times while Windows sets the permissions. Keep selecting Continue until the end of the process.
- Select OK to close the Local Permissions for the Local window and reinstall the Windows update.
- Select OK again to save the changes.
5. Check Your Firewall Settings
You can resolve the 0x80070005 error by configuring the SVCHOST (the host process for Windows services) to bypass your firewall settings.
- Type firewall in the Windows Search bar and select Firewall & network protection on the results page.
- Scroll to the bottom of the page and select Allow an app through firewall.
That’ll redirect you to the Windows Defender Firewall window in the Control Panel.
- Select Change settings.
- Select Allow another app.
- Select Browse.
- Select svchost and select Open.
- Select Add to continue.
- Ensure you check the “Private and “Public” columns for the Host Process for Windows Services.
- Select OK and try updating your PC again.
6. Perform a Clean Boot
Performing a clean boot in Windows can help diagnose the cause of startup errors, frequent app crashes, and Windows Update problems. When you perform a clean boot, your PC temporarily disables non-essential services. That’ll help isolate and diagnose software conflict causing the error code 0x80070005 when updating Windows or running Office apps.
Make sure you’re signed in to your PC using an administrator account before initiating a clean boot.
- Type msconfig in the Windows Search box and run System Configuration as an administrator.
- Head to the Services tab, check the Hide all Microsoft services box and select Disable all.
- Afterward, go to the Start-up tab and select Open Task Manager.
- Right-click a program in the list and select Disable. Do this for all apps in the Startup tab.
Close the Task Manager and restart your computer to boot into a “clean” environment. If you don’t get the 0x80070005 error after the clean boot process, that means one of the disabled apps is responsible for the error.
7. Reset Windows Update Components
Reset all components of the Windows Update agent if the error persists after trying the troubleshooting steps above.
- Type command prompt in the Windows Search bar and select Run as administrator.
- Type or paste net stop wuauserv in the terminal and press Enter. This command will stop the Windows Update service.
- Next, type or paste rd /s /q %systemroot%\SoftwareDistribution and press Enter.
- Finally, type or paste net start wuauserv and press Enter to restart the Windows Update service.
Close the Command Prompt window and check if you can now install Windows Updates without the 0x80070005 error code.
Last Resort: Reset Windows
Reset Windows to factory settings if you still can’t install Windows updates or run Office apps due to the 0x80070005 error.