Clear OneDrive cached credentials

Applies To
OneDrive for Business

Some users may have issues signing in to OneDrive with credentials that have expired on the computer.

ISSUE

A duplicate file is created with your computer name added to the filename, for example:

  • book1.xlsx
  • book1-desktop-computer.xlsx

WORKAROUND

Windows:

  1. Press the Windows key WindowsLogo + R to open a "Run" dialog.
  2. Enter the path %localappdata%\Microsoft\OneDrive\settings and select OK.
  3. Delete the PreSignInSettingsConfig.json file.

Mac:

  1. From Spotlight search type “keychain” and select "Keychain Access”. If it's not visible in Spotlight, go to the Utilities folder and open Keychain Access from there.
  2. Search for “OneDrive.”
  3. Delete “OneDrive Cached Credential.”
  4. Run OneDrive.

If these workarounds don't resolve the issue, please uninstall and reinstall OneDrive:

Note

You won't lose files or data by disabling or uninstalling OneDrive on your computer. You can always access your files by signing in to OneDrive.com.

Contact support icon Contact Support
For help with your Microsoft account and subscriptions, visit Account & Billing Help.
For technical support, go to Contact Microsoft Support, enter your problem and select Get Help. If you still need help, select Contact Support to be routed to the best support option.
Work or school badge Admins
Admins should view Help for OneDrive Admins, the OneDrive Tech Community or contact Microsoft 365 for business support.