How to Fix Microsoft Office Error Code 0-2031

Office Error Code 0-2031 : Microsoft office application is now an important element of our day to day life as it deals about our studies, work, business etc. And as it is a development era Microsoft has launched the well developed and secured products such as Office 365, Office 2021, Office 2019 and Office 2016 and also Office 2013 which was precede of Office 365 and Office 2016. You could buy the Office product from Microsoft product list or store .And in some cases the installation or update of Office may end up with Office Error Code 0-2031

Step 1. Temporarily disable Firewall and Antivirus to fix Office Error Code 0-2031

Office Error Code 0-2031  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 the Office Error Code 0-2031 by disabling the firewall or antivirus temporarily or you could fix the Error 0-2031 by making creating an exceptional rule for Microsoft Office installation or update.

Follow the steps to disable Firewall:

Office Error Code 0-2031

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 the Error 0-2031 is fixed.

For more information: click here to view Microsoft Reference article to disable windows firewall.

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 the Error 0-2031 is fixed.

Step 2. SFC Scan to fix Office Error Code 0-2031   

Office Error Code 0-2031 also occurs in case of system file errors or corruption. If the Office Error 0-2031 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 0-2031 is fixed.

For more information: Click here to view Microsoft reference kb article 929833 for sfc scan

Step 3. Registry repair to fix Office Error Code 0-2031

Office Error Code 0-2031 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 Office Error Code 0-2031 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.

For more information on back up of registry follow the Microsoft kb article 322756

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.









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





Solution 4. Remove and reinstallation.

If Office Error Code 0-2031 is not fixed in registry repair, SFC scan and firewall/antivirus exception, it is required to remove the Office suite completely from the programs and features, and then to reinstall the product for a proper use.

Follow the steps given below to fix Office Error Code 0-2031 completely.

Step 1. Open control panel

Step 2. Click on uninstall programs and features

Step 3. Search for Microsoft Office in the list.

Step 4. Select Microsoft Office and click on uninstall.

Step 5. Once uninstall is finished, try running Office setup to install Microsoft Office.

For more information: Click here to view Microsoft reference kb article to uninstall a program.

How to install Microsoft Office

Step 1. Open Office My Account

Step 2. Login to Office account using your registered email ID and password.

Step 3. Click on install Option under the Office product in your account.

Step 4. Save the installer setup if prompted and run it once download is completed.

Step 5. Do not go offline or reboot the computer once installation is initiated.

Step 6. Click on finish button once the program is installed completely.

Please note: If you are trying to install School or college or company version of Office suite click here to login to your office account and then follow from step 2.