When you start your Windows 11 PC, OneDrive for Business may sign in with a personal Microsoft account instead of your work or school account. This causes files to sync to the wrong folder or prevents business files from appearing at all. The issue occurs because OneDrive stores the last-used account credentials in the Windows Credential Manager and the registry, and Windows 11 may launch the wrong instance during startup. This article explains why the wrong account is used and provides step-by-step fixes to force OneDrive to use your correct work or school account at startup.
Key Takeaways: Force OneDrive to Use the Correct Business Account at Startup
- Windows Credential Manager > Windows Credentials > OneDrive Cached Credentials: Remove stored tokens for personal accounts so OneDrive cannot use them on restart.
- OneDrive Settings > Account > Unlink This PC: Relink OneDrive to your work or school account, which clears the cached startup account.
- Registry Editor > HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts: Delete subkeys for personal accounts to prevent OneDrive from loading them at startup.
Why OneDrive Starts With the Wrong Account on Windows 11
OneDrive for Windows 11 stores your sign-in credentials in two places: the Windows Credential Manager and the registry under HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts. When you sign in to a personal Microsoft account and a business account on the same PC, OneDrive may cache both sets of credentials. At startup, Windows 11 launches OneDrive automatically. If the personal account was the last one used, OneDrive picks up those cached credentials and signs in with the personal account instead of the business account.
The startup process reads the default account ID from the registry key DefaultAccountID inside the Accounts subkey. If that ID points to a personal account, OneDrive skips the business account entirely. This behavior is by design: OneDrive attempts to resume the last active session. However, for business users who need constant access to work files, this creates a persistent login mismatch.
Steps to Fix OneDrive Using the Wrong Account at Startup
Method 1: Clear Cached Credentials in Credential Manager
- Open Credential Manager
Press Windows + R, typecontrol, and press Enter. In Control Panel, set View by to Large icons. Click Credential Manager. - Go to Windows Credentials
Click Windows Credentials in the top section. Scroll to the Generic Credentials list. - Remove OneDrive personal credentials
Look for entries that containOneDriveand a personal email address likeuser@gmail.comoruser@outlook.com. Click the arrow to expand each entry, then click Remove. Confirm the deletion. - Remove business account credentials (optional)
If you see duplicate entries for your work or school account, remove them as well. You will re-enter them in the next method. - Restart OneDrive
Right-click the OneDrive cloud icon in the system tray and select Quit OneDrive. Open Start, typeOneDrive, and launch the app. Sign in with your work or school account.
Method 2: Unlink and Relink OneDrive to Your Business Account
- Open OneDrive Settings
Right-click the OneDrive cloud icon in the system tray and select Settings. - Go to the Account tab
In the OneDrive Settings window, click the Account tab. - Unlink this PC
Under your account information, click Unlink this PC. Click Unlink account in the confirmation dialog. - Restart and sign in
Close all OneDrive windows. Press Windows + R, type%localappdata%\Microsoft\OneDrive\onedrive.exe, and press Enter. Sign in with your work or school account credentials. Follow the setup wizard to choose your sync folder. - Set OneDrive to start automatically
In OneDrive Settings, go to the Settings tab. Check the box Start OneDrive automatically when I sign in to Windows. Click OK.
Method 3: Edit the Registry to Remove Personal Account References
Use this method if the first two methods do not resolve the issue. Editing the registry incorrectly can cause system problems. Back up the registry before proceeding.
- Open Registry Editor
Press Windows + R, typeregedit, and press Enter. Click Yes in the User Account Control prompt. - Navigate to OneDrive Accounts
In the left pane, go toHKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts. Expand the Accounts key to see subkeys namedBusiness1,Personal, or similar. - Identify the personal account subkey
Click each subkey and look at theDisplayNameorUserEmailvalue in the right pane. The personal account subkey will show a personal email address. - Delete the personal account subkey
Right-click the personal account subkey and select Delete. Confirm the deletion. Do not delete subkeys that contain your work or school email. - Restart OneDrive
Quit OneDrive from the system tray. Launch OneDrive again. It should now use only the business account.
If OneDrive Still Starts With the Wrong Account After the Main Fix
OneDrive Launches Both Personal and Business Accounts
Windows 11 can run two OneDrive processes simultaneously if both accounts are linked. To stop the personal instance from starting, open Task Manager with Ctrl + Shift + Esc. Go to the Startup tab. Find any entry named Microsoft OneDrive with a personal email suffix. Right-click it and select Disable. Then restart your PC.
OneDrive Keeps Asking for Credentials on Every Restart
If OneDrive prompts you to sign in each time Windows starts, the stored credentials might be corrupted. Open Credential Manager again and remove all entries under Windows Credentials that contain OneDrive or MicrosoftOffice16. Then sign in fresh. If the problem persists, run the OneDrive reset command: press Windows + R, type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. Wait 30 seconds, then launch OneDrive manually.
Group Policy Blocks Business Account Sign-In
Your IT administrator may have configured a Group Policy that restricts OneDrive to a specific account type. If you see an error like OneDrive cannot connect to your work account, contact your IT support. They can check the policy at Computer Configuration > Administrative Templates > OneDrive > Prevent the usage of OneDrive for file storage. This policy must be set to Not Configured or Disabled for business accounts to work.
| Item | Remove Credentials in Credential Manager | Unlink and Relink OneDrive | Edit Registry |
|---|---|---|---|
| Time required | 5 minutes | 10 minutes | 15 minutes |
| Risk level | Low | Low | Medium |
| Permanently fixes wrong account | Yes, if credentials are the only cause | Yes, resets account association | Yes, removes registry references |
| Requires admin rights | No | No | No |
| Works when OneDrive won’t open | Yes | No, must open settings first | Yes |
After applying the correct fix, OneDrive will start with your business account on Windows 11. To verify, right-click the OneDrive icon in the system tray and check that the account name shows your work or school email. If you manage multiple tenants, use the registry method to remove all personal references and keep only the business subkey. This prevents account confusion on future Windows updates.