Fix OneDrive Error 0x8004de40 with SharePoint Server and AD FS
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.
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.
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.
Select the OneDrive cloud icon in the Windows notification area, open its settings menu, and choose Quit OneDrive.
Press Windows key + R, enter %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and select OK.
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.
Check proxy, TLS, and AD FS authentication settings
Use this check if resetting the client does not restore access, especially when browser access works.
Confirm SharePoint Server and sync client compatibility
Check supported client and authentication combinations when the error persists across devices or locations.
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.

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.




