OneDrive Error Codes

Fix OneDrive Work Account Sign-In Error 0x8004de40

Elise WilliamsElise Williams Nov 18, 2026 869 views

Question details

The user needs to sign in to OneDrive with a work or school account that shares an email address with a personal account.

Fix OneDrive Work Account Sign-In Error 0x8004de40
Product
Microsoft OneDrive
Device & OS
Windows; version not provided
Scenario
A personal OneDrive account signs in successfully, but a work or school account using the same email address cannot sign in.
Observed behavior
OneDrive displays error 0x8004de40 for the work or school account. Resetting the app and installing the latest version did not resolve the issue.
Before you start

Confirm that you can sign in to your work or school account at office.com, choosing the work or school account if prompted. Check whether any local OneDrive files are still waiting to sync before changing the app configuration.

Solution 1Recommended

Check Work Account Access and OneDrive Sync Policies

Use this approach when the personal account works but the work or school account still cannot sign in after a reset and update.

1
Test the work account

Open office.com, select Sign in, and choose Work or school account if prompted. Check whether you can open OneDrive from the Microsoft 365 app launcher.

2
Check the user's license

In the Microsoft 365 admin center, go to Users > Active users, select the affected user, and open Licenses and apps. Confirm that the user has an appropriate license and that OneDrive access is enabled.

3
Review sync restrictions

In the SharePoint admin center, open Settings > Sync. Review any restrictions, such as limiting sync to PCs joined to specific domains, and adjust them if they improperly exclude the affected device.

4
Try signing in again

Open OneDrive, select Add an account in OneDrive settings, and sign in using the work or school account. If the error remains, contact Microsoft support with the error code and the results of the access checks.

Check Work Account Access and OneDrive Sync Policies
Administrator access may be required: A Microsoft 365 or SharePoint administrator may need to review licenses and sync settings. Policy changes can take time to apply.
Free Microsoft Office alternative

Work on Office Files with WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easier to move existing files. It does not fix OneDrive work account sign-in errors.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Work with Office files stored locally while you troubleshoot OneDrive access.Use a familiar interface to make switching from Microsoft Office easier.Get a free, lightweight suite for everyday document tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why can I sign in to personal OneDrive but not my work account?

Personal and work or school accounts are separate even when they use the same email address. Choose Work or school account at sign-in, then check the organization's license, access, and sync policies if the error continues.

Where can an administrator check OneDrive sync restrictions?

Open the SharePoint admin center and go to Settings > Sync. Review restrictions such as syncing only from PCs joined to specified domains.

Will deleting the OneDrive registry key delete my cloud files?

Deleting HKEY_CURRENT_USER\Software\Microsoft\OneDrive removes app configuration, not cloud files. Check for files that have not finished syncing before making the change, and export the registry key first.

What should I do if OneDrive still shows 0x8004de40?

Try signing in at office.com and testing another trusted network. If the issue persists, ask your administrator to review access and network restrictions or contact Microsoft support with the error code.