How to Fix “Error Code: 0xc0000020” on Microsoft Teams?

Several Windows 11 users have recently reported getting the ‘MS Teams.exe Bad Image Windows 11’ or ‘msteams.exe bad image error 0xc0000020’ error when opening Team’s app on their Windows 11 computers or clicking the Teams’ Chat icon in the taskbar.

We had a look into this issue and discovered that it can be caused by a number of reasons including:

  • Corrupted Cache – Corrupt files can cause a lot of damage to your computer and to your installed applications. Corrupted cache data prevents you from using the Teams application properly. 
  • Generic Glitch – There is also a chance that a glitch or bug within the Microsoft Teams application or your operating system is causing the issue at hand.
  • Corrupted Application Files – Each time a Windows program or software is launched, there are several background processes that start-up in the background. They are important to the successful execution of the program. If they are not present, software and programs will not run automatically. In the same way, corrupted MS Teams application files may cause pre-start processes to fail, preventing MS Teams from operating properly.

Now that we know the causes behind the error code 0xc0000020 on Microsoft Teams, let’s have a look at how to resolve this issue.

Uninstall the Recent Windows Update

The Windows updates Microsoft releases aren’t always flawless. Sometimes Windows updates can be very destructive and mayhem-inducing, inconveniencing hundreds of millions of users around the world. 

If the error at hand started occurring after you recently installed an update, there is a chance that the update is corrupt. If this scenario is applicable, uninstalling the update might do the trick for you.

Here is what you need to do:

  1. Press Windows + I keys simultaneously on your keyboard to open Windows Settings.
  2. Select Windows Update from the left panel.
  3. On the Windows Update page, select Update history.

    View Windows 11 update history
  4. Now in the Update History menu, head over to the Related settings section and choose Uninstall Updates.

    Click on the Uninstall updates option

     

  5. Your screen will now display a list of all installed updates. To remove an update, right-click on it and select Uninstall.

    Uninstall the KB5007247 update
  6. Select Yes in the confirmation prompt to proceed.
  7. Once the update is uninstalled, check if the 0xc0000020 error is resolved.

Run Windows Automatic Repair

In case you are facing an issue due to an issue within the Windows operating system, we recommend running Windows Automatic Repair. An automatic repair program can diagnose and fix common boot-related errors in Windows 8 and higher systems.

Follow the steps mentioned below to run this utility:

  1. Boot Windows from bootable installation media.
  2. Head over to the Repair your computer option.
  3. Select Troubleshoot.

    Accessing the Troubleshooting menu
  4. Now click on Advanced and then select Automatic Repair.

    Initiating an automatic repair procedure
  5. Wait for the process to complete. Once it is finished, restart your computer and upon reboot, check if the 0xc0000020 issue is resolved.

Rename Microsoft Teams Folder

There is a folder in Windows operating system called WindowsApp that holds sensitive data and you are not permitted to access it if you lack permission. WindowsApp also contains a Microsoft Teams folder, and several users managed to fix the issue under consideration by renaming the Teams folder. 

Here is how you can do that as well:

  1. Launch File Explorer and click three dots to choose Options.

    Access File Explorer options
  2. Head over to View and checkmark the box against Show hidden files, folders, and drives. Hit Apply to save the changes.

    How to Show Hidden Files Windows 10
  3. Now go to C:\Program Files\WindowsApps.
  4. Right-click on the WindowsApp folder and choose Properties.

    Select Properties from the context menu
  5. Navigate to Security > Advanced.

    Launch Advanced settings on WindowsApps
  6. Hit Change and then enter a user name. 
  7. Click OK to save proceed.
  8. Then, click Apply followed by OK again.
  9. Once the WindowsApp folder is launched, locate two folders starting with MicrosoftTeams
  10. Rename these folders by adding .old at the end of the folder name.
  11. Once done, restart your PC and see if your 0xc0000020 issue is fixed.

Create a Local Account

There are times when your operating system starts acting up due to a corruption error or bug within your user account. The best course of action, in this case, is to create and use a local user account on Windows. 

Hopefully, by doing so, you can resolve the error code 0xc0000020 and use Microsoft Teams without any issues. 

Follow these steps to do so:

  1. Press Windows key + I to open up the Settings app on Windows 11.
  2. From within the Settings menu, click the action button in the upper-left corner of the screen to access the side menu.
  3. Click on Accounts from the sideline menu that just appeared.
  4. Click on Family & other users in the right-hand side menu.

    Launch Family and other users option
  5. Once you’re inside the Family & other users tab, navigate to the Other users section and click on the Add account button.

    Add a new user account
  6. In the first prompt, click on the I don’t have this person’s sign-in information hyperlink.

    Don’t have this person sign in account
  7. On the next screen, click on Add a user without a Microsoft account and wait for the next screen to appear.
  8. In the Create a user for this PC page, enter a Local account username and add a password.

    Add a user without Microsoft Account
  9. Once the local account has been named and the password added, hit Next and wait until it has been initialized.
  10. Click Next one more time to complete the local account creation. Upon creating a local account, it will appear under Other users (in the Family & Other users tab).

Run SFC and DISM Scans

As mentioned earlier, corruption errors within the operating system can result in issues like the error code 0xc0000020. Fortunately, Windows has a number of built-in troubleshooting utilities that can automatically scan the system and its files for errors, and then fix them.

There are two such utilities: SFC (System File Checker) and DISM (Deployment Image Servicing and Management). These utilities replace corrupted system files with healthy counterparts and replace failed storage sectors with newer equivalents. 

We recommend you try running SFC and DISM scans on your Windows 11 via Command Prompt. If a corruption error is causing the problem, you will benefit from running these utilities.

Reset Taskbar Chat

Considering that the error in view also occurs if you click the Chat icon on the taskbar, try resetting the taskbar chat to its factory defaults. By resetting taskbar chat, you will restore its original, error-free state, which will fix any bugs or glitches that may have occurred. 

Follow these steps to reset the taskbar chat on Windows 11:

  1. Press Windows + I keys simultaneously on your keyboard to launch Windows Settings.
  2. In the Settings window, select Apps from the left side and then click on Apps & features.

    Apps and features settings in Windows 11
  3. Locate Microsoft Teams in the next window, and click on the three dots against it.
  4. Select Advanced options.

    Launch Microsoft Teams advanced settings
  5. Click the Terminate button.
  6. Then, click the Reset button and confirm it.

    Terminate and Reset Microsoft Teams
  7. Go to the Taskbar, open Chat, and sign in with another account.

Clean Uninstall & Reinstall MS Teams

If the above solution didn’t fix the error 0xc0000020 then there is a strong possibility that some of the MS Teams system files are corrupted. The easy fix would be to completely uninstall MS Teams and reinstall the latest fresh copy. Follow the steps given below to do so:

  1. Right-click the MS Teams icon in the taskbar and select Quit. That will end all MS Teams processes in the background.
  2. Now type Control Panel in the search area of the taskbar and click Open.
  3. Select Uninstall a program under the Programs section. Your computer will display a list of all installed programs.

    Uninstalling the Program via Control Panel
  4. Choose Microsoft Teams from the installed programs list and right-click on it.
  5. Then select Uninstall. Doing so will start uninstalling MS Teams.

    Uninstalling the program
  6. Press Windows + R keys on your keyboard to open the Run dialog box. 
  7. Type %appdata% in the text field of the dialog box and click OK. You will be directed to a hidden folder named AppData that contains data files from applications and services installed on Windows.

    Accessing the AppData folder
  8. Open Microsoft folder, right-click on the Teams folder and select Delete.

    Delete the Teams folder
  9. Once done, open a Run dialog box again by pressing Windows + R keys simultaneously. 
  10. Type %Programdata% in the text field and click OK. There is a hidden folder named ProgramData on your computer that contains data files related to the programs you install.

    Accessing the ProgramData folder
  11. Open Microsoft folder, right-click on the Teams folder and select Delete. You have now successfully removed Microsoft Teams from your computer.

    Delete Teams folder
  12. Download a fresh updated copy of Microsoft Teams desktop setup from the Official Microsoft Teams Download Webpage and then install it. Hopefully, this will help with the 0xc0000020 error.
ABOUT THE AUTHOR

Zainab Falak


Zainab Falak is a highly educated professional with a background in actuarial science and a strong passion for technology. Her expertise lies in the field of data analytics and she is a proficient programmer in languages such as Python and R. At Appuals, Zainab shares her extensive knowledge of Windows 8, 10, and 11, covering a broad range of topics related to these operating systems. Zainab's ability to effectively communicate technical concepts in a clear and concise manner has earned her recognition and respect in the tech community. She is committed to staying up-to-date with the latest developments in the field and providing readers with insightful and informative content.