You see the error message “You are syncing a different account” in OneDrive, and your files stop syncing. This happens when OneDrive on your Windows PC is connected to a Microsoft account that does not match the account used in other Microsoft 365 apps. The conflict prevents OneDrive from updating files until the correct account is linked. This article explains why the mismatch occurs and provides step-by-step instructions to reconnect OneDrive with the right work or school account.
Key Takeaways: Fixing the OneDrive Account Mismatch
- Unlink OneDrive via system tray icon > Help & Settings > Settings > Account > Unlink this PC: Removes the current connection so you can sign in with the correct account.
- Sign in with the correct work or school account: Use the email and password provided by your IT department to re-establish sync.
- Reset OneDrive if unlinking does not resolve the issue: Press Windows key + R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter.
Why OneDrive Shows a Different Account Error
OneDrive for Business requires a single primary account to sync files to your local PC. When you sign into Windows with a personal Microsoft account and later try to use a work or school account in OneDrive, the app detects the mismatch. The error “You are syncing a different account” appears because OneDrive checks the credentials stored in Windows Credential Manager and compares them with the account you are trying to use. If they do not match, sync stops.
This situation commonly occurs after you switch jobs, receive a new Microsoft 365 license, or share a computer with another user. The old account credentials remain cached, so OneDrive continues to attempt sync with the wrong identity. Clearing the cached credentials and linking the correct account resolves the conflict.
Steps to Reconnect OneDrive with the Correct Account
- Unlink the current OneDrive account
Right-click the OneDrive cloud icon in the system tray near the clock. Select Help & Settings > Settings. On the Account tab, click Unlink this PC. Confirm by clicking Unlink account in the dialog. - Close OneDrive completely
Right-click the OneDrive icon again and select Exit. This ensures no background process is holding the old credentials. - Open OneDrive from the Start menu
Click the Start button, type OneDrive, and press Enter. The OneDrive setup window appears. - Sign in with the correct work or school account
Enter the full email address provided by your organization, for exampleuser@contoso.com. Click Sign in. If prompted, complete multi-factor authentication. - Choose the sync location and folders
In the setup wizard, select the folder where you want to store your OneDrive files. The default path isC:\Users\YourName\OneDrive - Contoso. Click Next, then choose which folders to sync. Click Start sync. - Verify the account is correct
Right-click the OneDrive icon and select Help & Settings > Settings. On the Account tab, confirm the email shown under You are signed in matches your work or school account.
Alternative: Reset OneDrive If Unlinking Fails
If the error persists after unlinking, the OneDrive client may have corrupted cache files. A reset clears all cached data and forces a fresh start.
- Press Windows key + R
Type%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. A command window flashes briefly. - Wait 30 seconds
OneDrive automatically restarts after the reset. If it does not, open OneDrive from the Start menu. - Sign in again
Follow steps 4 through 6 from the previous section to link the correct account.
If OneDrive Still Shows the Wrong Account After Reconnecting
Stale credentials in Windows Credential Manager
Windows stores saved passwords for apps and websites. Old OneDrive credentials may remain after unlinking. To remove them:
- Open Credential Manager
Press Windows key + R, typecontrol keymgr.dll, and press Enter. - Click Windows Credentials
Scroll to the Generic Credentials section. Look for entries that contain “OneDrive” or “MicrosoftOffice16”. Click the arrow to expand each entry, then click Remove. Confirm the deletion. - Restart OneDrive
Open OneDrive and sign in with the correct account.
Multiple OneDrive instances installed
If your PC has both the personal OneDrive app and OneDrive for Business, the wrong instance may start automatically. Press Ctrl + Shift + Esc to open Task Manager. Under the Startup tab, locate OneDrive. Right-click and select Disable. Then open the correct OneDrive version from the Start menu by searching for “OneDrive for Business”.
Group Policy or registry blocking account change
Your IT department may have enforced a policy that prevents changing the OneDrive account. Contact your help desk and ask whether the policy “Allow syncing OneDrive accounts for only specific organizations” is enabled. If it is, you must request that your account be added to the allowed list.
Unlink vs Reset: Key Differences
| Item | Unlink OneDrive | Reset OneDrive |
|---|---|---|
| Description | Removes the account association without deleting local files or cache | Deletes cached data, settings, and credentials; preserves local files |
| When to use | Account mismatch after switching Microsoft 365 licenses | Unlinking fails or OneDrive displays persistent errors |
| Time to complete | 2 minutes | 5 minutes including sign-in |
| Impact on local files | None | None |
Both actions keep your local files intact. Unlinking is faster and sufficient for most account mismatch situations. Reset is a deeper cleanup that resolves cases where Unlink does not work.
You can now reconnect OneDrive to the correct work or school account and resume syncing files without the “different account” error. Next, review your OneDrive sync settings by right-clicking the icon and selecting Help & Settings > Settings > Sync and backup to confirm which folders are syncing. To avoid future mismatches, sign into Windows with the same account you use for OneDrive for Business.