Error while Uninstalling OneDrive

Lisa Bailey 0 Reputation points
2026-08-17T16:04:32.97+00:00

what does error code 0x80040c97 mean with regard to certificates on my computer

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Ivory 905 Reputation points Independent Advisor
    2026-08-17T16:21:15.4466667+00:00

    Hi Lisa,

    When you encounter the error below:

    User's image

    This issue may be caused by setup file corruption, corrupt certificates, Registry errors, third-party app interference, or Firewall blocks.

    You can try the following steps to see if it helps with your issue:

    1/ Reset OneDrive

    You can do this by following the guidance in this article: Reset OneDrive | Microsoft Support

    2/ Reinstall OneDrive

    Do the following:

    • Press Windows key + X to open Power User Menu.
    • Tap A on the keyboard to launch PowerShell in admin/elevated mode.
    • In the PowerShell console, type in the command below and hit Enter to terminate all the hidden background OneDrive processes of any kind i.e. installation, execution, etc: taskkill /f /im OneDrive.exe
    • Once the command executes, you can exit PowerShell console.
    • Next, press Windows key + R to invoke the Run dialog.
    • In the Run dialog box, type appwiz.cpl and hit Enter to open the Programs and Features applet.
    • Locate OneDrive (if available) in the list of installed programs.
    • Select Microsoft OneDrive.
    • Click Uninstall to completely remove OneDrive and its files from your PC.
    • Once the uninstall process completes, clear Temp files and restart your computer.

    On boot, download fresh OneDrive setup file and try the installation again. If the installation issue persists, try the next solution.

    3/ Install an earlier version of OneDrive

    If resetting and reinstalling OneDrive did not work for you then the problem is most likely related to the version compatibility between Windows 11/10 Build & Microsoft OneDrive. In this case, you can download and install an earlier version of OneDrive

    I hope this provides enough clarity and helps you stay inform with your current situation.

    Thank you for your patience and your understanding. If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.  


    If the answer is helpful, please click 'Yes' and kindly upvote it.

    Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.