Common causes for error code 0x80070021

  1. Antivirus software or firewall might be blocking the Office installation.
  2. Internet connection or proxy settings are preventing you from installing Office.
  3. Pre-existing version of an Office suite is blocking the installation.
  4. Incomplete\partial\failed repair\installation\change\removal of a previous Office suite can prevent from installing a newer version

Temporarily disable Firewall and Antivirus.

while installing or updating the Microsoft Office may occur in case of Network or firewall restriction. The network rules or firewall rules in the network/computer may block the installation of Office program or its updating as a part of their security measurements. These firewall rules and Antivirus are implemented on the computer by the network provider or the computer user on its core system or registry.

You could fix by disabling the firewall or antivirus temporarily or you could fix the by making creating an exceptional rule for Microsoft Office installation or update.

Follow the steps to disable Firewall:

Step 1. Open “control panel”

Step 2. Navigate to “system and security” and then to “Windows Firewall”

Step 3. Click on “turn windows firewall On or Off”

Step 4. Select Turn Off firewall for both private and public network.

Step 5. Try installing or updating Microsoft Office and check whether

is fixed.

Follow the steps to disable Antivirus:

Step 1. Open Antivirus application installed on the computer.

Step 2. Click on settings and navigate to real time protection.

Step 3. Turn Off real time protection.

Step 4. Navigate to Antivirus firewall.

Step 5. Turn off Antivirus firewall.

Step 6. Click on YES or OK confirmation prompt if prompted.

Step 7. Try installing or updating Microsoft Office and check whether is fixed.

SFC Scan

Also occurs in case of system file errors or corruption. If the Error 0x80070021

is occurred due to the system file corruption, it could be fixed easily by the SFC scan. The SFC scan or system file checking scan is the process of replacing or repairing the corrupted copy of system files using the cached copy of the file from the directory.

Follow the steps to initiate SFC scan:

Step 1. Open command prompt in administrative privileges.

Step 2. Type “ sfc /scannow “ and click enter.

Step 3. The scan will begin automatically .

Step 4. Do not close the command prompt until the scan get completed.

Step 5. Try installing or updating Microsoft Office and check whether the Error 0x80070021 is fixed.

Registry repair to fix Error 0x80070021

Error 0x80070021 also occurs due to registry corruption or key value errors. A single key value corruption or change may lead to malfunctioning of the entire Microsoft Office program.

In order to fix Error it is required to repair the registry keys and rebuilt the string values. And we request you to back up the registry before initiating the registry repair as registry is a highly sensitive element of a computer system and it is recommended to be done in the presence of Online or offline technician.

Follow the steps to repair registry:

Step 1. Open registry editor

Step 2. Delete the preinstalled or older registry key which block the installation of latest version or update.

Step 3. Navigate the below keys and delete it.

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0

HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\11.0

HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\12.0

HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\14.0

HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\15.0

Step 5. Also change the DWORD values in below keys from 0 to 1 in Office common registry folder.

LicenseServers

LicenseServerRedirection

AutoExpandDLsEnable

PassportAuthProvider

Follow the below steps to troubleshoot the error code 0x80070021


1 – Repair your Office app

error code 0x80070021 will be fixed when Office repair tool replaces all the corrupted system files. Follow the steps below to run a repair tool to fix the error.

  1. Open Control Panel using Start.
  2. Click on Programs and select Programs and Features.
  3. Click on the Office product that you want to repair.
  4. Click Change.
  5. Select Quick Repair and click on Repair. If Quick Repair didn’t fix the error code 0x80070021, select Online Repair and click on Repair.

Note: If Office Repair did not fix the error, remove and reinstall the Office Suite to fix the error code 0x80070021


2 – Steps to remove Office

In case if the error 0x80070021 persists even after running Office repair tool, uninstall Office from your computer.

  1. Open Control Panel using Start
  2. Click on Programs and select Programs and Features.
  3. Select Office Suite and click on Remove.

Note: If Office uninstallation failed or it didn’t fix the error, a manual uninstallation is required to completely remove the Office Suite.


3 – Steps to remove Office manually to fix the error code 0x80070021

If the error code 0x80070021 is re-occurring, proceed with the following steps to manually remove the Office program from your computer.

Step 1: Remove the Windows Installer packages

  1. Find the Office 16 installation folder, typically located in C:\Program Files\.
  2. Right-click the Microsoft Office 16folder and select Delete.

Step 2: Remove the Office scheduled tasks

  1. Open a Command Prompt window as an administrator.
  2. At the command prompt, type the following commands and press Enter after each one:

schtasks.exe /delete /tn “\Microsoft\Office\Office Automatic Updates”

schtasks.exe /delete /tn “\Microsoft\Office\Office Subscription Maintenance”

schtasks.exe /delete /tn “\Microsoft\Office\Office ClickToRun Service Monitor”

Step 3: Use Task Manager to end the Click-to-Run tasks

  1. Open Task Manager.
  2. Click the Process Tab
  3. If the following processes are running, right-click each one, and then click End task after you select each process.
  • .exe
  • setup*.exe

Step 4: Delete the Office files

  1. Press Windows logo key + R to open the Run Dialog box.
  2. In the Openbox, type %ProgramFiles%, and then click OK.
  3. Delete the “Microsoft Office 16” folder.
  4. Delete the “Microsoft Office” folder.
  5. Open the Run Dialog box, type %ProgramFiles(x86)%, and then click OK.
  6. Delete the “Microsoft Office” folder.

Step 5: Delete the Office registry subkeys

  1. Open Registry Editor.
  2. Delete the following registry subkeys:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppVISV
  • HKEY_CURRENT_USER\Software\Microsoft\Office
  • Then Delete the Office key.

Step 6: Delete the Start menu shortcuts

  1. Open a Command Prompt window as an administrator.
  2. Type %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs, and then press Enter.
  3. Delete the “Microsoft Office 2016 Tools” folder.

4 – Download and install Office

  1. Sign in to your My Account page using the link https://go.microsoft.com/fwlink/p/?LinkId=613327
  2. Choose Install.
  3. Click Run or the equivalent depending on the browser you’re using.
  4. When you see “You’re good to go”, click All done.

Error code 0x80070021: This article contains the troubleshooting steps to fix the error code 0x80070021. If you have reached here after following all the above mentioned troubleshooting steps. If error is still unresolved, you may contact Help desk for further assistance in troubleshooting error code 0x80070021

Recent Posts