Encountering the error code 0x8004de45 when trying to sign in to OneDrive can be frustrating. This error usually indicates a problem with your account credentials or cached data, preventing you from accessing your files in the cloud. Fortunately, there are several methods you can try to resolve this issue and get OneDrive working smoothly again.

Clear OneDrive Credentials in Windows

Outdated or corrupted credentials can prevent OneDrive from authenticating properly. Clearing these credentials may resolve the error.

  1. Press Windows + R on your keyboard to open the Run dialog box.
  1. Type control keymgr.dll and press Enter to open the Credential Manager.
  1. In the Credential Manager window, select Windows Credentials.
  1. Scroll through the list and locate any entries related to OneDrive, MicrosoftAccount, or your work or school account email address.
  2. Click on each relevant entry and select Remove.
  3. Close the Credential Manager and restart OneDrive.
  4. Sign in to OneDrive again with your Microsoft account credentials.

Rename the IdentityCache Folder

The IdentityCache folder stores cached credentials for your Microsoft accounts. Renaming this folder forces OneDrive to create a new cache, which can resolve sign-in issues.

  1. Close OneDrive by clicking on the OneDrive icon in the system tray, selecting Help & Settings, and choosing Quit OneDrive.
  1. Press Windows + R to open the Run dialog box.
  1. Type %localappdata%\Microsoft and press Enter.
  1. Locate the IdentityCache folder.
  1. Right-click on the IdentityCache folder and select Rename.
  1. Change the folder name to IdentityCache.old.
  1. Restart OneDrive and try signing in again.

Reset OneDrive

Resetting OneDrive can restore it to its default settings without affecting your files. This often resolves issues related to cached data or settings.

  1. Press Windows + R to open the Run dialog box.
  1. Copy and paste the following command, then press Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
  1. Wait a few moments for OneDrive to reset. The OneDrive icon may disappear and reappear in the system tray.
  2. If OneDrive does not restart automatically, open the Run dialog box again, type %localappdata%\Microsoft\OneDrive\onedrive.exe, and press Enter to restart it manually.
  1. Sign in to OneDrive and check if the error persists.

Update OneDrive and Windows

Ensuring that you have the latest updates for OneDrive and Windows can fix compatibility issues and bugs that may cause the error.

  1. Open OneDrive and click on the OneDrive icon in the system tray.
  2. Select Help & Settings and then choose Settings.
  1. In the Settings window, go to the About tab.
  1. Ensure that the option Automatically update OneDrive and Microsoft Office is checked.
  2. Click OK to save any changes.
  3. Update Windows by pressing Windows + I to open Settings.
  1. Navigate to Windows Update and click on Check for updates.
  1. Install any available updates and restart your computer.
  2. After restarting, try signing in to OneDrive again.

Check Your Internet Connection and Firewall Settings

Network issues or firewall settings can prevent OneDrive from connecting to the servers. Ensuring a stable connection and proper firewall configuration can help.

  1. Ensure that your internet connection is stable by opening a web browser and navigating to a website.
  2. If the connection is unstable, try restarting your router or contacting your internet service provider.
  3. Disable any VPN or proxy settings that might interfere with OneDrive's connection.
  4. Temporarily disable your antivirus or firewall program to see if it is blocking OneDrive.
  5. If OneDrive works after disabling the firewall, add OneDrive to the firewall's list of allowed applications.

Reinstall OneDrive

If none of the above methods work, reinstalling OneDrive may resolve the issue by repairing corrupted installation files.

  1. Press Windows + I to open Settings.
  1. Go to Apps and find Microsoft OneDrive in the list.
  1. Click on the three dots on the right of Microsoft OneDrive and select Uninstall.
  1. Follow the prompts to complete the uninstallation.
  2. Download the latest version of OneDrive from the official website.
  1. Run the installer and follow the on-screen instructions to install OneDrive.
  2. Sign in to OneDrive with your Microsoft account credentials.

After trying these methods, you should be able to resolve the 0x8004de45 error in OneDrive and regain access to your files.