You see a notification that says OneDrive cannot connect to Windows. This message often appears when the OneDrive sync app loses its connection to the operating system’s credential manager or background service. The root cause is usually a corrupted credential cache, a misconfigured proxy setting, or a stalled Windows service. This article explains why the error occurs and provides step-by-step fixes to restore sync.
Key Takeaways: Fixing the OneDrive Connection Error
- Windows Credential Manager > Windows Credentials > OneDrive Cached Credentials: Remove stale entries to force a fresh authentication handshake.
- Windows Services > Microsoft OneDrive Updater Service: Restart this service to reset the sync engine’s connection to the system.
- OneDrive Settings > Account > Unlink this PC: Perform a clean relink to rebuild the token cache and resolve persistent connectivity failures.
Why OneDrive Shows a Cannot Connect to Windows Error
The error occurs when the OneDrive sync app fails to authenticate with the Windows operating system. OneDrive stores your account credentials in the Windows Credential Manager. If those credentials become corrupted, outdated, or are overwritten by a third-party app, OneDrive cannot verify your identity. Another common cause is a stalled Windows service called the OneDrive Updater Service. This service handles the sync client’s background communication. When it stops or crashes, the sync engine cannot initiate a connection. Proxy or firewall settings that block OneDrive’s endpoints also trigger this error. Office 365 tenants that use Conditional Access policies may see the message if the device does not meet compliance requirements.
Step-by-Step Fixes for the OneDrive Cannot Connect to Windows Error
Perform these fixes in the order shown. Test sync after each step before moving to the next.
Fix 1: Clear and Re-enter OneDrive Credentials in Credential Manager
- Open Credential Manager
Press Windows key + R. Typecontrol /name Microsoft.CredentialManagerand press Enter. - Select Windows Credentials
Click the Windows Credentials tab. Scroll to the section labeled Generic Credentials. - Remove OneDrive entries
Look for entries that contain the name OneDrive or MicrosoftOffice. Click the arrow to expand each entry, then select Remove. Confirm the removal. - Restart OneDrive
Right-click the OneDrive cloud icon in the notification area. Select Close OneDrive. Open the Start menu, type OneDrive, and press Enter. Sign in with your work or school account.
Fix 2: Restart the Microsoft OneDrive Updater Service
- Open Services Console
Press Windows key + R. Typeservices.mscand press Enter. - Find the OneDrive Updater Service
Scroll the list to find Microsoft OneDrive Updater Service. Right-click it and select Restart. If the service is not running, right-click and select Start. - Set startup type to Automatic
Right-click the service again and select Properties. In the Startup type dropdown, choose Automatic. Click Apply and OK. - Test sync
Open a file in your OneDrive folder. Make a small change and verify the sync icon updates without error.
Fix 3: Unlink and Relink OneDrive on the Current PC
- Open OneDrive Settings
Right-click the OneDrive cloud icon in the notification area. Select Settings. - Unlink this PC
Go to the Account tab. Under OneDrive, click Unlink this PC. Click Unlink account in the confirmation dialog. - Reopen OneDrive
Open the Start menu, type OneDrive, and press Enter. Sign in with your work or school account. When prompted, choose the folder location for your OneDrive files. Click Next and then Open my OneDrive folder.
Fix 4: Reset OneDrive Sync Client
- Close OneDrive completely
Right-click the OneDrive cloud icon and select Close OneDrive. - Run the reset command
Press Windows key + R. Type%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. A command window opens briefly. Wait 30 seconds. - Restart OneDrive
Open the Start menu, type OneDrive, and press Enter. Sign in again.
If OneDrive Still Cannot Connect After the Main Fixes
OneDrive Cannot Connect on a Domain-Joined Device
Domain-joined computers often have Group Policy settings that block credential delegation. Contact your IT admin to verify that the policy Allow delegation of default credentials with NTLM-only server authentication is not blocking OneDrive. The admin can check this in Group Policy Management Editor under Computer Configuration > Administrative Templates > System > Credentials Delegation.
OneDrive Cannot Connect When Using a VPN
VPN clients can route OneDrive traffic through a proxy that blocks the sync endpoint. Disconnect the VPN and test sync. If sync works, configure the VPN to exclude onedrive.live.com and all subdomains from the tunnel. Alternatively, use split tunneling to allow OneDrive traffic outside the VPN.
OneDrive Cannot Connect After a Windows Update
A recent Windows update may have changed the permissions on the OneDrive cache folder. Open File Explorer and navigate to %localappdata%\Microsoft\OneDrive. Right-click the OneDrive folder, select Properties, go to the Security tab, and verify that your user account has Full Control. If not, click Edit, select your user, check Full Control, and click Apply.
OneDrive Sync Methods: Local Credential Cache vs Azure AD Token
| Item | Local Credential Cache | Azure AD Token |
|---|---|---|
| Storage Location | Windows Credential Manager | Azure AD cloud service |
| Lifetime | Until manually cleared or changed | Typically 90 days, refreshed silently |
| Trigger for Error | Corrupted or outdated cache entry | Expired or revoked token |
| Fix Method | Remove and re-enter credentials | Unlink and relink OneDrive |
You can now fix the OneDrive cannot connect to Windows error by clearing credentials, restarting the OneDrive Updater service, or unlinking and relinking your account. If the problem persists, check for Group Policy restrictions or VPN interference. For persistent issues, run the OneDrive reset command with the /reset parameter to rebuild the sync database without deleting your local files.