sodcalculator

10 Tech How-To

Fix OneDrive Cannot Connect to Windows

Guide 10-60495 · Updated · Step by step

If OneDrive shows “cannot connect to Windows” or fails to sync, the fix is usually to reset the OneDrive app, check your network and proxy settings, or repair the Windows credential manager. This article walks through the most common causes and step-by-step solutions for Windows 10 and Windows 11.

Why OneDrive Loses Connection to Windows

OneDrive is a cloud storage service built into Windows. It syncs files between your PC and Microsoft’s servers. When it “cannot connect to Windows,” it means the app is having trouble talking to either the local Windows services it depends on or to Microsoft’s servers. Common triggers include:

  • A temporary glitch in the OneDrive app itself
  • Corrupted cached credentials in Windows Credential Manager
  • Network issues, including VPNs, proxies, or firewalls blocking traffic
  • Windows updates that changed settings or broke the OneDrive integration
  • Conflicts with other sync apps or security software

Quick Fixes to Try First

Start with these simple steps—they resolve a large percentage of connection errors without deeper troubleshooting.

  1. Restart OneDrive: Right-click the OneDrive cloud icon in the system tray (near the clock) and select “Exit.” Then reopen OneDrive from the Start menu.
  2. Restart your PC: A full reboot clears temporary network and app states.
  3. Check your internet connection: Open a browser and visit a website. If that fails, fix your network first.
  4. Pause and resume syncing: Right-click the OneDrive icon, choose “Pause syncing,” wait a minute, then choose “Resume syncing.”

Reset OneDrive (Most Effective Fix)

Resetting OneDrive clears its cache and resets the app’s internal state without deleting your files. This is the most reliable fix for connection errors.

  1. Press Windows + R to open the Run dialog.
  2. Type the following and press Enter: %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
  3. A command prompt window may flash briefly. Wait a few minutes—OneDrive should restart automatically.
  4. If it doesn’t restart, launch OneDrive manually from the Start menu.

If the reset command doesn’t work, try the full path with the version number. Open File Explorer, go to %localappdata%\Microsoft\OneDrive, find the folder with a version number (e.g., 23.123.0601.0001), and run OneDrive.exe /reset from there.

Check Windows Credential Manager

OneDrive stores your Microsoft account credentials in Windows Credential Manager. If those credentials become outdated or corrupted, the app can’t authenticate.

  1. Open Control Panel → User Accounts → Credential Manager.
  2. Click Windows Credentials.
  3. Look for entries that start with OneDrive Cached Credential or contain “OneDrive.”
  4. Remove those entries by clicking the arrow and selecting Remove.
  5. Restart OneDrive. It will prompt you to sign in again—enter your credentials.

Be careful to only remove OneDrive-related entries, not other Windows credentials.

Network, Proxy, and Firewall Checks

OneDrive requires access to Microsoft’s servers over HTTPS (port 443). If you use a VPN, proxy, or strict firewall, it may block that traffic.

  • Disable VPN temporarily: Some VPNs route traffic through servers that OneDrive doesn’t recognize. Turn off the VPN and test.
  • Check proxy settings: In Windows, go to Settings → Network & Internet → Proxy. Ensure “Use a proxy server” is off unless you need it for your network.
  • Allow OneDrive through firewall: Open Windows Security → Firewall & network protection → Allow an app through firewall. Make sure OneDrive is checked for both Private and Public networks.
  • Flush DNS: Open Command Prompt as administrator and run ipconfig /flushdns.

Repair or Reinstall OneDrive

If resetting doesn’t work, you can repair the app through Windows Settings.

  1. Open Settings → Apps → Installed apps (or Apps & features).
  2. Find Microsoft OneDrive in the list.
  3. Click the three-dot menu (or the app name) and select Advanced options.
  4. Click Repair. Windows will attempt to fix the app without removing your files.
  5. If that fails, click Reset (this will clear the app’s data, but your local files remain).

As a last resort, uninstall OneDrive and download the latest version from Microsoft’s website. Your files stay on your PC and in the cloud—you just need to sign in again.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. Resetting OneDrive only clears the app’s cache and local configuration. Your files remain on your PC and in the cloud. After reset, OneDrive will re-sync, which may take some time.

Why does OneDrive say “cannot connect to Windows” even when my internet works?

This error often comes from OneDrive’s integration with Windows services, not your internet. Corrupted credentials, a broken app state, or a conflict with a Windows update are common causes. The reset and credential removal steps above usually resolve it.

Can I use OneDrive without signing in?

No. OneDrive requires a Microsoft account to sync files. If you don’t want to sign in, you can use local storage or another cloud service, but you won’t be able to use OneDrive.

What if OneDrive is not showing in the system tray?

OneDrive may be hidden. Click the up arrow (show hidden icons) in the system tray. If it’s not there, search for “OneDrive” in the Start menu and launch it. If it doesn’t start, run the reset command from the Run dialog.

Does this fix work on Windows 11?

Yes. The steps are the same for Windows 10 and Windows 11, though the Settings layout differs slightly. The reset command and Credential Manager steps are identical.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →