Share via

OneDrive couldn't be installed Error code 0x80040d13

Nigel Smith 0 Reputation points
2026-01-05T15:42:35.5+00:00

OneDrive wouldn't sync, signed out and couldnt't sign back in again. Reinstalled 365, but OneDrive didn't, tried to install it and got theabove error code.

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

2 answers

Sort by: Most helpful
  1. JANSHER LIWAG 8,850 Reputation points Independent Advisor
    2026-01-05T16:19:29.97+00:00

    Hi Nigel,

    Thank you for posting. If you unable to install the OneDrive and getting this error please try this steps see if this will help.

    Click Start and search Run and open. Once RUN windows is open Type "Regedit" in the search bar and press Enter.

    Navigate to this path HKEY_CURRENT_USER\Software\Microsoft\OneDrive.

    Delete the OneDrive key then Restart your PC. After restart try to install the OneDrive again see if it will work.

    Please lt me know how this goes. Looking forward to helping you out.  If you need more help please feel free to let me know. If the answer is helpful, please click "Accept Answer".

    Best regards,

    Jansher

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-01-05T15:43:45.74+00:00

    To resolve the error code 0x80040d13 when trying to install OneDrive, you can follow these general troubleshooting steps:

    1. Repair Office Installation: Sometimes repairing your Office installation can resolve issues without needing to uninstall and reinstall. You can follow the instructions on how to repair Office programs.
    2. Check for Updates: Ensure that your Windows and Office applications are up to date. Sometimes, updates can fix installation issues.
    3. Remove Cached Accounts: If you have previously signed into OneDrive, you may need to remove cached Microsoft Office account identities from the registry. Be cautious when modifying the registry:
      • Open Registry Editor.
      • Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity.
      • Right-click on Identity and select Delete.
    4. Clear OneDrive Data: You may also want to clear any existing OneDrive data. Remove all folders in the following locations:
      • %localappdata%/Microsoft/OneAuth
      • %localappdata%/Microsoft/IdentityCache
    5. Reinstall OneDrive: If the above steps do not resolve the issue, you may try uninstalling and reinstalling OneDrive for work or school. The steps depend on how you installed the application initially.

    If these steps do not resolve your issue, consider reaching out to Microsoft support for further assistance.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    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.