How to fix
OneDrive error 0x8004def4
on Windows
Resolve OneDrive error 0x8004def4 on Windows 10 and 11 with easy fixes. Get your cloud storage running smoothly again—expert-tested solutions await!
What causes How to fix OneDrive error 0x8004def4 in Windows?
- No access to the OneDrive service
- Issues with OneDrive Business account connection
- Need to reconnect the OneDrive account
- Problems with the OneDrive application
- Interference from security software or similar applications
Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.
Two weeks ago OneDrive stopped syncing my files and I received an error 0x8004def4. What can I do to fix it?
OneDrive error 0x8004def4 in Windows
OneDrive is a popular cloud storage solution that lets users easily save, sync, and share files across several devices. OneDrive keeps your data fresh and readily available by enabling you to access your most critical documents, images, and other files from any location. But OneDrive is not without its problems, just like every other software - 0x8004def4 error is one frequent issue that you could run into. It might cause issues with file accessibility and synchronization.
Understanding error 0x8004def4
Error 0x8004def4 typically means that there is no access to the OneDrive service. This can be particularly frustrating as it prevents you from syncing your files, thus interrupting your workflow and access to important data. This error can affect all files stored in OneDrive or just a subset, depending on the underlying cause.
There are several reasons why you might encounter error 0x8004def4. It could be due to issues with your OneDrive Business account connection, needing to reconnect your account or problems that can be resolved using the OneDrive recovery assistant. Additionally, the error might be caused by the OneDrive application itself, necessitating a reset or reinstallation. Security software or similar applications might also interfere with OneDrive’s ability to connect to the service.
What can be done to fix the 0x8004def4 error?
To fix the 0x8004def4 error in OneDrive, you can try several solutions that we present below - they range from reconnecting your OneDrive account, connecting your business account, using Microsoft Support Assistant, resetting OneDrive, disabling security or similar software, or reinstalling OneDrive.
Detailed instructions for these troubleshooting steps can be found below this article, although we recommend running a PC repair application [d1] first.

Fix 1. Connect to a Business account
Ensuring that your OneDrive is correctly connected to your Business account can resolve access issues.
- Right-click the OneDrive icon in the taskbar.
- Select Settings.
- Ensure your Business account is correctly connected.
- Sign out and sign back in if necessary.
Fix 2. Reconnect account
Reconnecting your OneDrive account can refresh the connection and resolve any temporary access issues.
- Right-click the OneDrive icon in the taskbar.
- Select Settings.
- Go to the Account tab.
- Click Unlink this PC.
- Sign in again with your Microsoft account.

Fix 3. Use Support and Recovery Assistant
Microsoft Recovery Assistant can diagnose and fix common OneDrive issues automatically.
- Open your browser and go to the official Microsoft support website.
- Scroll down and click Download under Uninstall and reinstall Office.
- Once downloaded, double-click SetupProd_OffScrub.exe to launch it.
- When prompted, click Install.
- Once installed, launch Microsoft Support and Recovery Assistant.
- Select OneDrive for Business and click Next.
- Pick I need help syncing my OneDrive files and click Next.
- Follow instructions after the scan is finished.

Fix 4. Reset OneDrive
Resetting OneDrive can resolve various issues by restoring the application to its default state.
- Press Win + R on your keyboard.
- When the Run window opens, copy and paste the following text into it:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
(Note: you might get an error here. In that case, use %programfiles(x86)%\Microsoft OneDrive\onedrive.exe /reset or C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset instead) - Press Enter or click OK.
- After this command is executed, the app should be reset, and OneDrive should open.
- If it doesn't, wait a few minutes, then open the Run window again and use the following command:
%localappdata%\Microsoft\OneDrive\onedrive.exe - Press Enter.

Fix 5. Install Windows updates
- Type Updates in Windows search and hit Enter.
- In the new window, click Check for updates.
- If optional updates are available, install them as well.
- When all the update processes are complete, restart your device.

Fix 6. Disable security or similar software
- Open your security software.
- Temporarily disable the software and check if OneDrive works.
- If OneDrive works, add OneDrive to the software’s exception list.
Fix 7. Reinstall OneDrive
Reinstalling OneDrive can resolve deeper issues by replacing potentially corrupted files.
- Right-click on Start and pick Apps & Features/Installed apps.
- Find OneDrive in the list, select it, and click Uninstall, then follow the on-screen instructions.
- After uninstallation, download the latest version of OneDrive from the official Microsoft website and install it by following the on-screen instructions.
- Sign in to your OneDrive account to start syncing your files again.

Bottom line
To fix the 0x8004def4 error in OneDrive, you can try reconnecting your OneDrive account, ensuring your Business account is connected, using Microsoft Support Assistant, resetting OneDrive, disabling security software, or reinstalling OneDrive. If none of these solutions work, consider running a PC repair application for further assistance.
Frequently asked questions
OneDrive error 0x8004def4 is often caused by network connectivity issues, incorrect settings, or problems with your Microsoft account. It may also occur due to corrupted OneDrive files.
To resolve this error on Windows 10, try resetting OneDrive by running the command 'onedrive.exe /reset' in the Run dialog. Additionally, check your internet connection and ensure your Microsoft account is properly signed in.
Yes, uninstalling and reinstalling OneDrive can often fix error 0x8004def4 in Windows 11, as it resets all configurations to default. Make sure to back up any important files before uninstalling.




Report an issue
What's wrong with this guide? We review every report and update or remove content.
Report received — thank you. We'll review and fix it.
You need a free account to submit a report.
Be the first to comment