OneDrive Error 0x8004de40 ("There Was a Problem Connecting")? Fix the TLS Handshake
OneDrive won’t sign in: “There was a problem connecting to OneDrive” / “Login was either interrupted or unsuccessful,” with error code 0x8004de40 (or the related 0x8004de88).
The real cause: despite the wording, this is rarely your internet. It’s a TLS / cipher-suite mismatch — OneDrive can’t complete a secure handshake with Microsoft’s front-end (Azure Front Door). That happens when TLS versions are turned off, the required cipher suites are missing/mis-ordered, or the device’s identity trust has gone stale.
Why “reinstall OneDrive” is a dead end: the top answers say check your Wi-Fi or reinstall the app. Reinstalling doesn’t touch the Windows TLS stack — which is the thing that’s actually failing — so the error comes right back.
Fix 1: Re-enable TLS in Internet Options
- Win + R →
inetcpl.cpl→ Advanced tab. - Under Security, ensure Use TLS 1.2 (and TLS 1.3 if listed) are checked. Leave SSL 3.0 unchecked.
- Apply, reboot, and retry OneDrive.
Fix 2: Make sure the required cipher suites are enabled and ordered
OneDrive needs specific TLS cipher suites enabled. In admin PowerShell, list what’s active:
Get-TlsCipherSuite | Format-Table Name
If the modern ECDHE suites OneDrive needs are missing, re-enable them (example):
Enable-TlsCipherSuite -Name "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
A common culprit is a hardening tool or GPO that disabled or reordered cipher suites — restoring the default order resolves the handshake. (Reboot after changes.)
Fix 3: Re-establish device trust (work/school accounts)
For Entra/Azure-AD-joined PCs, a stale device registration breaks token exchange. In admin Command Prompt:
dsregcmd /status
If AzureAdJoined/SSO look wrong, have IT re-join the device (a dsregcmd /leave then re-join), then sign in to OneDrive again.
Fix 4: Clear the OneDrive credential, then sign in fresh
- Quit OneDrive (tray icon → gear → Quit OneDrive).
- Credential Manager (
Win + R→control /name Microsoft.CredentialManager) → Windows Credentials → remove any OneDrive Cached Credential entries. - Relaunch OneDrive and sign in. (Do this after Fixes 1–2 — on its own it won’t fix a TLS failure.)
FAQ
Is 0x8004de88 the same fix? Yes — it’s the same connection/TLS family; work through Fixes 1–3 in order.
It started after our IT rolled out a security baseline. That’s the classic trigger — a baseline that disabled older TLS or reordered ciphers. Restore the TLS settings (Fixes 1–2) and tell IT which suites OneDrive needs.
Could it be a date/time problem? Yes — a wrong system clock breaks TLS too. Confirm Set time automatically is on before deeper steps.
Sources: Microsoft Learn — Error 0x8004de40 when you sign in to OneDrive