onedrive Code 0x8004de85

How to Fix OneDrive Error 0x8004de85 (Sign-In Error)

Diagnostic Procedures

  • 1 Understand the cause of OneDrive login error 0x8004de85
  • 2 Verify your Microsoft account type (Personal vs. Business)
  • 3 Delete expired credential caches in Windows Credential Manager
  • 4 Remove corrupted Registry keys under OneDrive Accounts
  • 5 Perform a clean re-installation of the OneDrive sync client

How to Fix OneDrive Error 0x8004de85 (Sign-In Error)

If you receive OneDrive Error Code 0x8004de85 during login, the OneDrive client is having difficulty identifying your account. This error typically translates to “Account does not exist” or “Account type mismatch” and occurs when the sync engine attempts to authenticate a Microsoft account that is either deactivated, configured incorrectly, or has conflicting cached credentials.

This troubleshooting guide explains how to clear the sign-in block on Windows and macOS.


What Causes OneDrive Error 0x8004de85?

The primary causes for this error include:

  1. Account Type Conflict: Attempting to log into the personal OneDrive client using a Microsoft 365 Work or School account (or vice-versa).
  2. Corrupted OneDrive Registry State: Conflicting registry keys associated with multiple logged-in accounts on the same PC.
  3. Outdated Cache Tokens: Stale security tokens in Windows Credential Manager or macOS Keychain Access.

Detailed Steps to Resolve Error 0x8004de85

Follow these troubleshooting steps to resolve the issue:

Step 1: Verify Account Portal Access

Before editing local system files, verify that your account is active:

  1. Open your web browser and navigate to the Microsoft 365 Portal.
  2. Log in using your email credentials.
  3. If you can access the portal and open the web-based OneDrive application, your account is active, and you can proceed to local client fixes. If you get an account error here, contact your IT administrator or Microsoft Support.

Step 2: Clear Conflicting Registry Keys (Windows)

If you have used multiple Microsoft accounts (e.g. personal and work) on the same machine, the local OneDrive registry branch can become corrupted.

  1. Press Windows Key + R to open the Run window.
  2. Type regedit and press Enter (select Yes on the UAC prompt).
  3. Navigate to the following key path:
    HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts
  4. Expand the Accounts folder. You will see subkeys named Personal or business identifiers (like Business1).
  5. Right-click the folder matching the account that is throwing error 0x8004de85 and select Delete.
  6. Restart your computer and launch OneDrive to sign back in.

Step 3: Delete Cached Microsoft Credentials

Cached session tokens can override active logins, causing authentication mismatches.

On Windows:

  1. Open the Start Menu, search for Credential Manager, and select it.
  2. Choose Windows Credentials.
  3. Under Generic Credentials, look for all items containing the words OneDrive or MicrosoftOffice.
  4. Click on each item and click Remove.
  5. Restart OneDrive and try signing in again.

On macOS:

  1. Open Keychain Access (via Spotlight search).
  2. In the search box at the top right, type OneDrive or Microsoft.
  3. Select and delete all credential records matching OneDrive Cached Credential or Microsoft Office Credential.
  4. Launch OneDrive to prompt a fresh login flow.

Step 4: Perform a Clean Reinstallation

If the error persist, registry caches can be bypassed by performing a clean reinstall of the latest client:

  • Windows: Download and install the latest installer directly from the Microsoft OneDrive Official Page. Do not use the Microsoft Store version, as it has limited diagnostics.
  • macOS: Uninstall the App Store version, and instead install the Standalone package from Microsoft’s website. The Standalone version is much more stable and supports advanced FileProvider configurations.