Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix OneDrive Error 0x80070005 (Access Denied)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

OneDrive error 0x80070005 means Windows is blocking OneDrive from accessing a file or folder — usually due to permission conflicts, a corrupted cache, or a sync path that's too long. The quickest fix is to reset OneDrive and then check folder permissions. Below are the exact steps, in order, that resolve this error for most people.

What You'll Need

  • Administrator access to your Windows PC (to reset OneDrive and change permissions)
  • Your Microsoft account password (you'll sign in again after resetting)
  • Patience — the reset process can take a few minutes

Step-by-Step

  1. Close OneDrive completely. Right-click the OneDrive cloud icon in the system tray (bottom-right near the clock) and select Exit. If you don't see the icon, click the up arrow to show hidden icons.
  2. Reset OneDrive. Press Windows + R to open the Run dialog. Type the following and press Enter:
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
    A command prompt window may flash briefly. Wait 30 seconds — OneDrive should restart automatically. If it doesn't, launch OneDrive from the Start menu.
  3. Sign in again. If OneDrive opens and asks you to sign in, do so with your Microsoft account. If it opens without asking, sign out and back in: right-click the OneDrive icon > Settings > Account > Sign out. Then sign in again.
  4. Check folder permissions. If the error persists, right-click the OneDrive folder (usually in C:\Users\YourName\OneDrive) and select Properties > Security tab. Click Advanced. Make sure your username is listed with Full control. If not, click Add > Select a principal, type your username, click Check Names, then OK. Grant Full control and apply to all subfolders.
  5. Clear OneDrive cache. Open File Explorer and navigate to %localappdata%\Microsoft\OneDrive\cache. Delete everything inside this folder (not the folder itself). This removes temporary files that may be corrupted.
  6. Check file paths. OneDrive has a 260-character path limit. If you have files in deeply nested folders, move them closer to the root of your OneDrive folder (e.g., from OneDrive\Documents\Projects\2025\ClientA\Drafts\Final to OneDrive\ClientA_Final).
  7. Run the OneDrive sync troubleshooter. Open Windows Settings (Windows + I) > System > Troubleshoot > Other troubleshooters. Find OneDrive (if listed) and run it. On Windows 10, it may be under Update & Security > Troubleshoot.
  8. Reinstall OneDrive. If nothing else works, uninstall OneDrive from Settings > Apps > Installed apps. Then download the latest version from the official Microsoft website and install it. This resets all settings and often fixes persistent permission errors.

Common Mistakes

  • Skipping the reset. Many users try permission changes first, but the reset step is the most effective and should be done first — it clears a corrupted state that often causes this error.
  • Deleting the OneDrive folder. Do not delete the entire OneDrive folder to “fix” this. That removes your local files and forces a full re-download, which can take hours and may cause data loss if files aren't synced.
  • Changing permissions on the wrong folder. Make sure you're changing permissions on the actual OneDrive folder (the one with the cloud icon overlay). If you have multiple OneDrive accounts, each has its own folder.
  • Ignoring antivirus interference. Some third-party antivirus software blocks OneDrive. Temporarily disable it (or add OneDrive to its exclusions) to test — but re-enable it afterward.

Tips

  • Keep paths short. Avoid nesting files more than a few levels deep in OneDrive. Use short folder names to prevent path length issues.
  • Use the “Files On-Demand” feature. If you have OneDrive Files On-Demand enabled (Settings > Sync and backup > Advanced settings), try turning it off and then on again. This can refresh file access permissions.
  • Run as administrator. When you reset OneDrive, right-click the command prompt shortcut and choose “Run as administrator” to ensure the reset has full system access.
  • Check for Windows updates. Sometimes a pending Windows update causes permission glitches. Install all pending updates and restart before retrying.

Troubleshooting

If the above steps don't work, try these in order:

  • Restart your PC. A simple reboot clears many temporary permission locks.
  • Check if the error is on a specific file. The error message usually names the file or folder. If it's a single file, try moving it out of OneDrive, then back in. This forces OneDrive to re-sync it.
  • Create a new Windows user profile. If permissions are severely broken, create a new local administrator account, sign in, and try OneDrive there. If it works, you can migrate your files.
  • Use the Microsoft Support and Recovery Assistant. Download it from Microsoft's official site and run the OneDrive diagnostic. It can automatically fix common issues.
  • Check if OneDrive is blocked by Group Policy. If this is a work or school computer, your IT admin may have restrictions. Contact them for help.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. Resetting OneDrive only clears the app's local configuration and cache. Your files remain on your hard drive and in the cloud. After reset, OneDrive re-syncs everything.

Why does error 0x80070005 happen only on some files?

It usually means those files have restrictive permissions (e.g., read-only or owned by another user). Right-click the file, go to Properties > Security, and give your account full control.

Can I fix this without admin rights?

Most fixes require admin rights. If you're on a work computer, contact your IT department. On a personal PC, ensure you're using an administrator account.

Does this error affect files already synced?

No. It only prevents new or changed files from syncing. Your existing synced files are safe.

Is there a way to avoid this error in the future?

Keep your OneDrive folder clean, avoid long file names, and regularly update Windows and OneDrive. Also, don't store OneDrive folder inside another cloud-synced folder (like Dropbox).

What if I use OneDrive for Business?

The steps are the same, but you may also need to check SharePoint permissions. Contact your admin if the error persists after trying these fixes.