Fix OneDrive Work Account Sign-In Error 0x8004de40
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.

- 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.
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.
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.
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.
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.
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.
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.

Remove the OneDrive Registry Configuration and Reinstall
Try a configuration removal if the standard OneDrive reset did not resolve the sign-in error.
Check the Connection Used by OneDrive
Use these checks to rule out a connection or network restriction behind error 0x8004de40.
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.

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.




