Error 0x8004de2f on Windows 11 appears when OneDrive fails to sync or open files, usually due to corrupted credentials or a broken connection between the app and Microsoft servers. The fix is to sign out of OneDrive, clear cached credentials, and re-authenticate, which resolves the issue in most cases. Below is a complete troubleshooting guide with step-by-step instructions and context for why this error occurs.
What Causes Error 0x8004de2f?
This error is tied to OneDrive’s authentication process. When you sign in, Windows stores a token that lets OneDrive access your files without asking for your password every time. If that token becomes outdated, corrupted, or conflicts with a cached credential, OneDrive cannot verify your account and throws 0x8004de2f. Common triggers include:
- Changing your Microsoft account password while OneDrive is running
- Leaving OneDrive running through a Windows update or reboot
- Network proxy or VPN interference that blocks the authentication endpoint
- Corrupted local OneDrive cache files
- Multiple Microsoft accounts signed in on the same PC
The error is not a sign of file damage or data loss. Your files remain intact on the cloud and locally; only the sync connection is broken.
Before You Start: Backup and Preparation
While the fixes below are safe, it is wise to ensure no important unsynced changes are lost. OneDrive usually keeps local copies of files, and signing out does not delete them. However, if you have pending uploads, they may pause. To be safe:
- Right-click the OneDrive cloud icon in the system tray and select Pause syncing for 2 hours.
- Copy any files you edited in the last hour to a separate folder on your desktop.
- Note your OneDrive folder location (usually
C:\Users\YourName\OneDrive).
This preparation takes two minutes and prevents any accidental loss if a step goes wrong.
Fix 1: Sign Out and Back Into OneDrive
The most direct fix resets the authentication token. Follow these steps:
- Right-click the OneDrive cloud icon in the notification area (bottom-right near the clock).
- Select Settings (gear icon) and then Account tab.
- Click Sign out and confirm.
- Close OneDrive completely: right-click the icon, select Exit.
- Reopen OneDrive from the Start menu.
- Sign in with your Microsoft account and let it sync.
If you have a work or school account, sign in with that specific account. If you have multiple accounts, sign out all of them first.
Fix 2: Clear Windows Credential Manager Entries
If signing out does not work, the cached credentials in Windows are likely corrupted. Clear them manually:
- Press Win + R, type
control, and press Enter to open Control Panel. - Go to User Accounts > Credential Manager.
- Click Windows Credentials.
- Look for entries that start with
OneDriveor containMicrosoftOffice16orMicrosoftAccount. - Click the arrow next to each and select Remove.
- Restart OneDrive and sign in again.
Do not remove credentials for other services (like your Wi-Fi or network drives) unless you are sure they are OneDrive-related. Removing the wrong credential can break other apps.
Fix 3: Reset OneDrive App
Sometimes the app itself is corrupted. Windows 11 includes a reset option that reinstalls the app while keeping your files:
- Open Settings (Win + I).
- Go to Apps > Installed apps.
- Search for Microsoft OneDrive.
- Click the three-dot menu and select Advanced options.
- Scroll down and click Reset.
- Confirm and wait for the process to finish.
- Open OneDrive and sign in again.
This does not delete your files, but it will reset all app settings, so you may need to re-select which folders sync.
Fix 4: Run the OneDrive Setup Command
If the reset does not help, run a command that reinstalls OneDrive without removing your data:
- Press Win + R, type
cmd, and press Ctrl+Shift+Enter to run as administrator. - Type the following and press Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - Wait for the command to finish. OneDrive will restart automatically.
- If it does not, launch OneDrive from Start.
This command is safe and is the official method Microsoft recommends for resetting the sync client.
Fix 5: Check Network and Proxy Settings
Error 0x8004de2f can also occur if OneDrive cannot reach Microsoft’s authentication servers. Check these:
- Temporarily disable VPN or proxy software and try again.
- Ensure your date and time are set correctly: Settings > Time & Language > Date & time.
- Flush DNS: open Command Prompt as admin and run
ipconfig /flushdns. - Reset network stack: run
netsh winsock resetand restart your PC.
If you are on a corporate network, your administrator may block OneDrive endpoints. Contact your IT support in that case.
Frequently Asked Questions
Will I lose my files if I sign out of OneDrive?
No. Signing out only disconnects the sync client. Your files remain in the cloud and in the local OneDrive folder. They will sync again after you sign back in.
Why does this error happen after I change my Microsoft password?
Changing your password invalidates the stored token. OneDrive does not always detect this immediately, so it keeps trying with the old token and fails. Signing out and back in fixes it.
Can I fix this error without restarting my PC?
Yes, all the fixes above work without a full restart, though a restart is sometimes needed after clearing credentials or resetting the network stack.
Does this error affect my files on other devices?
No. The error is local to this Windows 11 PC. Your files remain accessible on other devices and on the OneDrive website.
What if none of these fixes work?
Try uninstalling OneDrive completely and reinstalling from the Microsoft Store. If that fails, use the OneDrive website to confirm your files are safe, then contact Microsoft support.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Voice Dictation in Google Docs: How to Use It
- Turn Off Message Notifications on Mac