What the error means
Error 0x8004def7 appears when you try to sign in to the OneDrive sync app and the sign-in is refused. Microsoft's Learn article lists three possible causes: your OneDrive storage exceeded its storage limit, your account was suspended, or the OneDrive sync app has configuration issues. Microsoft's OneDrive error codes page gives the short version: you may see 0x8004def7 if you have exceeded your storage capacity and or your account has been suspended.
The first two causes are what Microsoft calls a frozen account. The Learn article explains that anyone with a Skype, Xbox, Hotmail or Outlook.com account also has a OneDrive account, and that the OneDrive account will be frozen if you haven't accessed it in 12 months or if you exceed your storage limit, even if you keep using other Microsoft services. Microsoft's frozen account article adds that this happens when an account or shared subscription stays over its storage allowance for three months, or when you don't sign in for a long time.
The third cause is local. If the account is fine and under its quota, the sync app's own settings on the PC may be the problem, and Microsoft's fixes for that are to unlink and relink OneDrive or to reset it.
Common causes
- The OneDrive account is over its storage limit.
- The account has been suspended or frozen, including after a long time without signing in.
- Configuration issues in the OneDrive sync app on the PC.
How to fix it
1. Check how much OneDrive storage you use
Sign in to OneDrive on the web with the account that shows the error and open the storage settings to see what is taking up space. Microsoft's frozen account article reminds you to sign in with the account that received the frozen message; if you think the message is a mistake, you may have a second Microsoft account, such as one created for Samsung Gallery, that is the one over quota.
2. Get back under the storage quota
Delete files or folders you no longer need, or buy more storage. Microsoft says it can take up to 24 hours for the change to apply. While the account is over quota, existing files remain but are read-only, you can't upload, edit or sync new files, and you can't send or receive email in Outlook.com.
3. Unlink and relink OneDrive
If storage is not the problem, unlink the PC and sign in again. Select the OneDrive icon in the notification area, select Help & Settings > Settings, open the Account tab, select Unlink this PC and then Unlink account. Then follow the Welcome to OneDrive wizard to set it up again. Microsoft says relinking can resolve existing sync app configuration issues, and that you won't lose files or data by unlinking OneDrive.
4. Reset OneDrive
If relinking does not help, reset the sync app. Press Windows key + R, paste this command and select OK:
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetIf Windows can't find it, use C:\Program Files\Microsoft OneDrive\onedrive.exe /reset or the Program Files (x86) path instead. Microsoft says resetting resets all OneDrive settings and OneDrive will run a full sync afterwards, without losing files. Start OneDrive again from the Start menu if it does not reopen. The OneDrive sync problems guide covers what to expect after a reset.
If nothing works
Microsoft says that if your account is still frozen 48 hours after getting back under the quota, contact support. For a work or school account, ask your IT department whether the account or its OneDrive was suspended. Act quickly: Microsoft warns that after six months over the storage limit it might delete the OneDrive and all files in it, and deleted files can't be recovered.
What we checked
Three Microsoft pages were read. The Learn article "Error 0x8004def7 when signing in to OneDrive" lists the storage, suspension and sync app configuration causes and the check storage, unlink and relink, and reset fixes, and notes the 12-month inactivity rule. The support page "What do the OneDrive error codes mean?" lists 0x8004def7 and gives the reset command paths. The frozen account article explains the quota timings and consequences. The error was not reproduced for this page.
Last checked: 2026-11-21.