OneDrive Error Codes

Fix OneDrive Error 0x8004de40 with SharePoint Server and AD FS

Steven ParkerSteven Parker Nov 20, 2026 870 views

Question details

Resolve OneDrive error 0x8004de40 when the desktop sync client connects to an on-premises SharePoint Server environment using AD FS.

Product
Microsoft OneDrive sync client and SharePoint Server
Device & OS
Windows
Scenario
A user wants to sync SharePoint Server files through a desktop client in an environment that uses AD FS, SSL, and a web proxy.
Observed behavior
The desktop sync client reports error 0x8004de40, although access works in a browser and on mobile devices.
Before you start

Confirm whether the files are hosted on SharePoint Server or SharePoint Online, and note the SharePoint Server and OneDrive sync client versions. Have the SharePoint site address and your organization’s proxy and authentication details available.

Solution 1Recommended

Reset the OneDrive sync client and sign in again

Use a client reset as an initial check for a local sync or sign-in problem.

1
Quit OneDrive

Select the OneDrive cloud icon in the Windows notification area, open its settings menu, and choose Quit OneDrive.

2
Run the reset command

Press Windows key + R, enter %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and select OK.

3
Restart and sign in

Open OneDrive from the Windows Start menu if it does not restart automatically. Sign in with your work account and try syncing the SharePoint library again.

If Windows cannot find the command: The OneDrive executable may be installed in a different location. Locate onedrive.exe on the computer and run it with the /reset argument.
Free Microsoft Office alternative

Edit Office documents with WPS Office

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make it easier to move existing files into WPS. It does not fix OneDrive authentication or replace SharePoint Server sync.

Open and edit documents downloaded from a SharePoint libraryCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXFree, lightweight desktop office suiteFamiliar editing interface for an easier transition
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint work in my browser but not in the OneDrive sync client?

The browser and desktop client may use different authentication or network paths. Ask your administrator to check proxy access, TLS, AD FS settings, and whether the sync client supports your SharePoint Server configuration.

How do I reset OneDrive on Windows?

Quit OneDrive, press Windows key + R, and run %localappdata%\Microsoft\OneDrive\onedrive.exe /reset. Then open OneDrive from the Start menu, sign in, and try syncing again.

Does error 0x8004de40 always mean my internet connection is down?

No. In this scenario, the sync client may be unable to authenticate or connect through the required proxy, TLS, or federation setup even when other services and browser access work.

Should I install the legacy OneDrive sync client?

First check Microsoft documentation for your SharePoint Server version or contact Microsoft Support. Client support depends on the server and authentication configuration, so a legacy client should not be assumed to be appropriate or available.