OneDrive

OneDrive error 0x8004de40: what it means and how to fix it

OneDrive error 0x8004de40 means the sync app cannot connect to the cloud when you sign in, often because of TLS or cipher suite settings on the PC.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

Microsoft's article on this code says 0x8004de40, and the related 0x8004de88, indicate that OneDrive is having trouble connecting to the cloud. You see it at sign-in, either as "OneDrive Can't sign in. Error 0x8004de40" or "Login was either interrupted or unsuccessful. Please try logging in again." The account and password are usually fine. What fails is the secure connection the sync app opens to Microsoft's servers before it can sign you in.

Microsoft ties the error to two layers on the PC. The first is the internet connection itself. The second is encryption: Microsoft 365 no longer accepts TLS 1.0 and 1.1, so the PC has to offer TLS 1.2. Microsoft adds that even after the upgrade to TLS 1.2, the cipher suites must match what Azure Front Door supports, because Microsoft 365 and Azure Front Door support slightly different sets. A PC whose cipher suite order was changed by Group Policy can therefore still fail.

If OneDrive signs in but files will not sync, this is not your error. The wider OneDrive sync problems guide covers file-level blockers, resets and admin policies. If sign-in fails with an AADSTS code instead, that is a Microsoft Entra sign-in problem with its own fixes.

Common causes

  • No internet connection on the device.
  • TLS 1.2 not enabled after Microsoft 365 retired TLS 1.0 and 1.1.
  • The four TLS 1.2 cipher suites that Azure Front Door supports missing or low in the cipher suite order, often because of a Group Policy setting.
  • A work device whose Microsoft Entra registration needs refreshing.
  • On Windows 7, 8 or Server 2012, TLS 1.1 and 1.2 not set as default secure protocols.

How to fix it

1. Confirm the device is online

Microsoft's first step is to verify the internet connection. If the device is not connected, fix the Wi-Fi or network connection first, then sign in to OneDrive again. Nothing else on this page helps until the device is online.

2. Check the TLS protocol settings

Press Windows logo key + R, type inetcpl.cpl and press Enter. On the Advanced tab, make sure TLS 1.2 is selected. Microsoft's article has you select the TLS 1.0, TLS 1.1 and TLS 1.2 check boxes, then Apply and OK. On a managed device, check with your IT team before turning older protocols back on, because a security baseline may deliberately keep them off; TLS 1.2 is the one Microsoft 365 needs.

3. Put the supported cipher suites at the top of the order

On Windows 10 and later, Microsoft says the cipher suites must match Azure Front Door: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 and TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, at the top of the list. You can set the order with Group Policy or with PowerShell as administrator, then check it:

Enable-TlsCipherSuite -Name "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" -Position 0
Get-TlsCipherSuite

If the order does not change, the SSL Cipher Suite Order Group Policy setting is controlling it, and that policy needs updating instead.

4. Restart while connected to your organization's domain

Restart the device while it is connected to your Microsoft Entra domain. If the error remains, Microsoft documents leaving and rejoining Microsoft Entra ID from an elevated Command Prompt, only while connected to your organization's network:

dsregcmd /leave
dsregcmd /join

Restart, then sign in to OneDrive. This affects more than OneDrive, so on company devices leave it to IT.

5. On older Windows, enable TLS 1.2 as a default protocol

For Windows 7 SP1, Windows 8, Windows Server 2012 and Server 2008 R2 SP1, Microsoft points to its Easy Fix tool, which adds the TLS 1.1 and TLS 1.2 Secure Protocol registry keys, and to KB 3140245 for Windows 8 with its matching registry value. Then check the cipher suite order as in step 3.

If nothing works

After completing the steps above, Microsoft's last recommendation for every version of Windows is to reset OneDrive, using its separate "Reset OneDrive" instructions. As a general step beyond Microsoft's article, if the error appears on several company devices at once, compare their cipher suite and TLS policies first, since a shared Group Policy setting would affect them all.

What we checked

On 2026-11-19 we read Microsoft's Learn article "Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive". It gives the exact error messages, states that the code means OneDrive is having trouble connecting to the cloud, links it to the TLS 1.0 and 1.1 deprecation, and documents the cipher suite, TLS protocol, restart, Entra rejoin, older Windows and OneDrive reset steps. We read the vendor documentation and did not reproduce the error.

Last checked: 2026-11-19.

Official sources

Questions people ask

Is 0x8004de40 a wrong password error?

No. Microsoft says 0x8004de40 means OneDrive is having trouble connecting to the cloud. The fixes are about the connection and its encryption settings, not your password.

Why would TLS settings stop OneDrive signing in?

Microsoft 365 retired older TLS versions, and Microsoft links that change to this error. The PC must be able to use TLS 1.2 with cipher suites that Azure Front Door supports, or the secure connection fails before sign-in completes.

Should I run dsregcmd /leave to fix OneDrive?

Only on a work device connected to your organization's network, and only after restarting has not helped. Microsoft warns not to do it away from the organization's infrastructure, for example while traveling.

  • 0xCAA70004 (Microsoft Teams)

    Teams error 0xCAA70004 means the sign-in could not reach the server or proxy. Fixes for proxies, inspection tools, firewalls and the Windows sign-in broker.

  • 0xCAA82EE2 (Microsoft Teams)

    Teams error 0xCAA82EE2 means the sign-in request timed out. Check the connection, firewalls and apps that block access, then the network path to Microsoft 365.

  • AADSTS50126 (Microsoft 365 sign-in (Entra ID))

    AADSTS50126 means Microsoft Entra ID rejected the username or password. Fixes for users, Windows PCs after a password change, and federated accounts in automation.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.