Independent technical referenceOfficial site
  • Software and digital services
  • Office suites

0x8004DE40

Microsoft 365 0x8004DE40 in OneDrive: cannot connect to the cloud

Verified with sources3 sourcesReviewed Oct 3, 2026
Technician coming? See the 3 steps they must show you

Risk level

Medium

Proceed carefully and stop if the check is unclear.

Urgency

Medium

Quick answer

OneDrive will not sign in and shows 0x8004de40 (or 0x8004de88): it is having trouble connecting to the cloud. Check your internet connection and restart the PC first; if it continues, reset OneDrive.

Safety first

Stop and check this first

  • Do not enable old TLS versions to make OneDrive connect: the error is fixed with TLS 1.2 and matching ciphers, which IT reviews.
  • Do not run dsregcmd /leave away from your organisation's network (for example while travelling): Microsoft explicitly warns to do it only when connected to its infrastructure.

Safe checks you can perform

  • Internet connection
  • Restart on the organisation's network
  • Reset OneDrive
  • OneDrive on the web and service status

Leave these tasks to a qualified professional

  • Do not attempt this professional task: Leave and rejoin Microsoft Entra ID
  • Do not attempt this professional task: Service health in the admin center
  • Do not attempt this professional task: Check TLS 1.2 and cipher order

What a technician must be able to justify

Technician visit

These are the steps they must carry out and show you. Tick them as they work: if steps are skipped, do not accept a part swap.

These are not instructions for opening or handling the equipment yourself. They are the checks that should support a technical conclusion.

  1. Leave and rejoin Microsoft Entra ID

    What they doIf a restart is not enough and the device is on the organisation's network, they run dsregcmd /leave and dsregcmd /join in an elevated Command Prompt, restart and sign in to OneDrive.

    They must show youdevice state before and after.

    In writingdate, network used and result.

  2. Service health in the admin center

    What they doThe administrator checks Health, Service health in the Microsoft 365 admin center for OneDrive and SharePoint, including issues that need the organisation's action.

    They must show youOneDrive status at the time of the failure.

    In writingwhether there was an incident and its ID.

  3. Check TLS 1.2 and cipher order

    What they doThe IT technician verifies the PC uses TLS 1.2 and that the four cipher suites Azure Front Door supports are at the top of the list, via Group Policy or Enable-TlsCipherSuite, and checks it with Get-TlsCipherSuite.

    They must show youthe Get-TlsCipherSuite output.

    In writingwhich ciphers were added and in what order.

Before accepting a part or repair

Nothing has been shown yet. Do not accept a part swap based on the code alone.

Follow these steps

Note: Follow the documented order. An error code identifies the affected system, but it does not prove by itself which part has failed.

  1. Internet connection

    No special tools

    Who:
    you.
    How:
    open any website. If it does not load, follow the Windows guide to fix Wi-Fi connection issues before going back to OneDrive.
    Result that matters:
    whether the PC has internet.
    If not:
    restore the connection and sign in again.
    If it does:
    restart the PC.
    Evidence to keep:
    time of the failure and network used.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

  2. Restart on the organisation's network

    No special tools

    Who:
    you.
    How:
    on a company PC, restart while connected to your organisation's network and sign in to OneDrive.
    Result that matters:
    whether OneDrive signs in after the restart.
    If it does:
    the device needed to renew its domain connection.
    If not:
    reset OneDrive.
    Evidence to keep:
    network you were on when restarting.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

  3. Reset OneDrive

    No special tools

    Who:
    you.
    How:
    press Windows + R, paste %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and OK. If Windows cannot find it, use C:\Program Files\Microsoft OneDrive\onedrive.exe /reset or the Program Files (x86) path. Then open OneDrive from Start.
    Result that matters:
    whether OneDrive syncs again without 0x8004de40.
    If it syncs:
    the app's local state was the problem.
    If the code returns:
    hand the case to IT support.
    Evidence to keep:
    time of the reset and the OneDrive icon state afterwards.

    Evidence: What do the OneDrive error codes mean?

  4. OneDrive on the web and service status

    No special tools

    Who:
    you.
    How:
    from the OneDrive icon choose View online, or go to OneDrive.com. If you cannot get in, check the status of Office Online services on the Service Health portal.
    Result that matters:
    whether your files show on the web and whether an incident is posted.
    If there is an incident:
    wait for Microsoft to fix it before changing anything.
    If the web works and there is no incident:
    the fault is on the PC or the account.
    Evidence to keep:
    screenshot of the web or service status with the time.

    Evidence: What do the OneDrive error codes mean?

Still not solved

If the error persists, stop here. See what the technician must do and show you.

Where this code applies

A code is meaningful only inside the right product and version context.

Primary scope

System
Software and digital services
Brand
Microsoft 365
Product type
Office suites

Known code variants

  • 0x8004de40
  • 0x8004de88
  • 8004de40
  • OneDrive 0x8004de40

What it means

Microsoft says 0x8004de40 and 0x8004de88 mean OneDrive is having trouble connecting to the cloud at sign-in. Besides missing internet, it points to the deprecation of old TLS versions: the PC needs TLS 1.2 and cipher suites that match Azure Front Door. On devices joined to Microsoft Entra ID it also suggests restarting while connected to the domain and, if needed, rejoining the device. The code does not say which of these applies.

Warnings and stop conditions

  • Mediumeditorial warning

    Do not enable old TLS versions to make OneDrive connect: the error is fixed with TLS 1.2 and matching ciphers, which IT reviews.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

  • Highsource verified

    Do not run dsregcmd /leave away from your organisation's network (for example while travelling): Microsoft explicitly warns to do it only when connected to its infrastructure.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

Symptoms and causes

Probable causes · in order

  • No internet connectionPossible

    Other sites do not load either. Microsoft asks to check this first.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

  • Unsupported TLS or cipher suitesPossible

    The PC has internet but cannot complete the secure connection. More likely on older devices or policies; IT confirms it.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

  • Device state in Microsoft Entra IDPossible

    Company PC joined to Entra ID; fixed by restarting on the domain or rejoining it.

    Evidence: Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive

Virtual technician

Does 0x8004DE40 still appear after these checks?

Answer a few questions to narrow down the likely cause and the safest next action. Guidance only - it never replaces a professional.

Sources and technical references

  1. 1

    What do the OneDrive error codes mean?

    Microsoft · 2026 · official_doc

  2. 3

    How to check Microsoft 365 service health

    Microsoft · 2026 · official_doc

Sources: What do the OneDrive error codes mean? · Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive · How to check Microsoft 365 service healthreviewed 2026-10-03 · verified

Was this entry useful?