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.

Table of Contents

    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.

    1. 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.

    1. 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.”

    1. 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:

    1. Press the Windows key + R, type regedit in the Run box, and select OK.
    1. Expand the HKEY_USERS folder, right-click the S-1-5-20 folder, and select Permissions in the context menu.
    1. Select Add.
    1. Type your name of the current user in the dialog box, select Check Names, and select OK.
    1. Next, select Advanced. That’ll open the Advanced Security Settings menu for the registry folder.
    1. In the “Permissions” tab, select the newly-created user, and choose Edit.
    1. Check the Full Control box and select OK.
    1. Select NETWORK SERVICE and select Edit.
    1. Check the Full Control box and select OK.
    1.  Finally, check the Replace all child object permission entries with inheritable permission entries from this object and select OK.
    1. Select Yes on the confirmation prompt.
    1. Select Apply and then OK.

    Close the Registry Editor, reopen the Office app and check if that stops the 0x80070005 error code.

    1. Press the Windows key + R to open the Windows Run box.
    2. 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.

    1. Right-click the Local folder and select Properties in the context menu.
    1. Head to the Security tab and select Edit.
    1. Select Add.
    1. Type Everyone in the dialog box, select Check Names, and choose OK afterward.
    1. Select Everyone, check the Allow box in the “Full control” column.
    1. Select Apply and then OK.
    1. 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.
    1. Select OK to close the Local Permissions for the Local window and reinstall the Windows update.
    1. 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.

    1. Type firewall in the Windows Search bar and select Firewall & network protection on the results page.
    1. 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.

    1. Select Change settings.
    1. Select Allow another app.
    1. Select Browse.
    1.  Select svchost and select Open.
    1. Select Add to continue.
    1. Ensure you check the “Private and “Public” columns for the Host Process for Windows Services.
    1. 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.

    1. Type msconfig in the Windows Search box and run System Configuration as an administrator.
    1. Head to the Services tab, check the Hide all Microsoft services box and select Disable all.
    1. Afterward, go to the Start-up tab and select Open Task Manager.
    1. 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.

    1. Type command prompt in the Windows Search bar and select Run as administrator.
    1. Type or paste net stop wuauserv in the terminal and press Enter. This command will stop the Windows Update service.
    1. Next, type or paste rd /s /q %systemroot%\SoftwareDistribution and press Enter.
    1. 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.