Fix OneDrive Cannot Connect to Windows Error
In this article
If OneDrive shows a "cannot connect to Windows" error, it usually means the sync client lost its link to the Windows account or a background service stalled. The quickest fix is to sign out of OneDrive, restart the app, and sign back in. Below are the full steps, plus what to do if the problem persists.
What You'll Need
- Administrator access to your Windows PC (for some steps)
- Your Microsoft account credentials (email and password)
- Stable internet connection
Step-by-Step
- Check your internet connection. Open a browser and visit any website. If it fails, restart your router or switch networks. OneDrive needs a live connection to authenticate.
- Restart OneDrive. Right-click the OneDrive cloud icon in the system tray (bottom-right near the clock). If you don't see it, click the up arrow to show hidden icons. Select Exit. Wait 10 seconds, then open OneDrive from the Start menu.
- Sign out and sign back in. Right-click the OneDrive icon again, choose Settings (or Preferences), go to the Account tab, and click Sign out. Follow the prompts. Then reopen OneDrive and sign in with your Microsoft account. This re-establishes the connection to Windows.
- Check the Windows service. Press Windows + R, type
services.msc, and press Enter. Look for Windows Update and Background Intelligent Transfer Service (BITS). Ensure both are set to Automatic and are Running. If not, right-click each, select Properties, set startup type to Automatic, click Start, then OK. - Run the OneDrive sync troubleshooter. Open Settings (Windows + I), go to System > Troubleshoot > Other troubleshooters. Find OneDrive (or Windows Store Apps if OneDrive isn't listed) and click Run. Follow the on-screen instructions.
- Reset OneDrive. Press Windows + R, type
onedrive /reset, and press Enter. A command prompt window will flash briefly. Wait a few minutes, then OneDrive should reopen automatically. If it doesn't, open it from the Start menu. This does not delete your files. - Update Windows and OneDrive. Go to Settings > Windows Update and click Check for updates. Install any pending updates. Also, open the Microsoft Store, click Library, then Get updates to update OneDrive.
- Reinstall OneDrive. If nothing else works, uninstall OneDrive via Settings > Apps > Installed apps. Select OneDrive and click Uninstall. Then download the latest version from the official Microsoft website and install it. Sign in again. Your files remain in the cloud and on disk.
Common Mistakes
- Not fully exiting OneDrive. Closing the window doesn't stop the app; it runs in the background. Always use Exit from the tray icon.
- Skipping the sign-out step. Merely restarting the app often doesn't clear a broken token. Signing out and back in is essential.
- Ignoring service settings. If BITS or Windows Update is disabled, OneDrive can't sync. Check those services first.
- Using a work or school account incorrectly. If you have both personal and work accounts, ensure you're signing into the right one. The error can appear if you mix them.
Tips
- Keep OneDrive running at startup. In OneDrive settings, go to Settings and check Start OneDrive automatically when I sign in to Windows.
- Make sure your system date and time are correct. Wrong time can cause authentication failures.
- If you use a VPN, try disconnecting it temporarily. Some VPNs block Microsoft's authentication servers.
- Use the OneDrive icon in the tray to see real-time sync status. A red circle with a white cross means errors; a blue cloud means idle.
Troubleshooting
If the steps above don't fix the error:
- Check Microsoft's service status. Visit the Microsoft 365 service health page in a browser. If OneDrive is down, you'll need to wait.
- Create a new Windows user profile. Sometimes the error is tied to a corrupted profile. Create a test user account and try OneDrive there. If it works, you may need to migrate your files.
- Check for third-party conflicts. Antivirus or firewall software can block OneDrive. Temporarily disable them (if safe) and test. Re-enable after.
- Look at the Windows Event Log. Press Windows + R, type
eventvwr, and go to Windows Logs > Application. Look for errors from OneDrive or the sync engine. The details can point to a specific cause. - If all else fails, contact Microsoft Support through the official support page. They can check your account and provide a specific fix.
Frequently Asked Questions
Will resetting OneDrive delete my files?
No. The reset command (onedrive /reset) only clears the sync cache and reconnects the app. Your local files and cloud files remain untouched.
Why does the error say "cannot connect to Windows"?
This usually means OneDrive can't verify your Windows user account, often due to a stale sign-in token, a paused sync, or a Windows service that stopped.
Do I need to be an administrator to fix this?
Most steps (sign out, reset) don't require admin rights. However, changing Windows services or reinstalling OneDrive may require an administrator account.
Can I fix this without signing out?
Sometimes restarting the app works, but signing out and back in is the most reliable way to clear the connection error. It's safe and quick.
Does this error affect my files in the cloud?
No. Your files are safe in OneDrive's cloud storage. The error only prevents sync on your PC.
What if I use a work or school OneDrive account?
The steps are the same, but your organization may have policies that block sign-out or reset. Contact your IT admin if you can't resolve it.