When you sign in to OneDrive on a Windows PC, it may open your personal Microsoft account instead of your work or school account. This happens when the OneDrive app stores credentials for both account types and defaults to the personal profile. The issue prevents access to OneDrive for Business files, sync settings, and shared team documents. This article explains why OneDrive defaults to the personal account and provides step-by-step fixes to force the work account.
Key Takeaways: Force OneDrive for Business to Open the Correct Account
- OneDrive Settings > Account > Unlink this PC: Removes all cached credentials so you can sign in again with the work account only.
- Windows Credential Manager > Windows Credentials: Delete stored OneDrive credentials to clear conflicting sign-in data.
- OneDrive.exe /reset command: Resets the OneDrive sync engine without deleting local files, clearing account preferences.
Why OneDrive Defaults to a Personal Account Instead of a Work Account
OneDrive for Windows allows multiple accounts to be signed in simultaneously. When you sign in with a personal Microsoft account and later add a work or school account, the app may treat the personal account as the primary profile. This happens because the first account that completes sign-in becomes the default. The OneDrive app does not automatically switch to the work account when launched. Instead, it opens the account that was last active or the one stored in the system credential vault. The issue is not a bug but a design behavior where OneDrive retains the first account’s token and uses it as the default launch profile. If you signed in with a personal account first, OneDrive will open that account every time until you manually switch or reset the app.
How OneDrive Stores Account Credentials
OneDrive saves your sign-in tokens in the Windows Credential Manager under Windows Credentials. These tokens include the account type personal or organizational and the associated email address. When you launch OneDrive, it reads these credentials and opens the first one it finds. If a personal account token exists, OneDrive opens that account. The work account token is still present but not prioritized. This credential caching is designed for convenience, but it causes confusion when both account types are present.
Steps to Make OneDrive Open the Work Account by Default
The following methods remove personal account preferences and force OneDrive to use the work account on launch. Perform these steps in order until the issue is resolved.
Method 1: Unlink OneDrive and Sign In Again with the Work Account
- Open OneDrive settings
Right-click the OneDrive cloud icon in the system tray notification area and select Settings. If the icon is hidden, click the arrow to show hidden icons. - Go to the Account tab
In the Microsoft OneDrive dialog, select the Account tab at the top. You will see a list of accounts currently signed in. - Unlink this PC
Under your personal account, click Unlink this PC. Confirm the action when prompted. This removes the personal account association from this computer. - Sign in with your work account
OneDrive will restart and show the sign-in screen. Enter your work or school email address and password. Complete the authentication using your organization’s sign-in method. - Set the sync folder location
Choose the folder where you want to sync your work files. Click Next and then Open my OneDrive folder to verify the work account is active.
Method 2: Delete Stored Credentials from Windows Credential Manager
- Open Credential Manager
Press the Windows key and type Credential Manager. Click the result to open the Control Panel applet. - Select Windows Credentials
Click Windows Credentials at the top of the window. This section stores all cached sign-in tokens for Windows services. - Locate OneDrive credentials
Scroll down to the Generic Credentials section. Look for entries that start with MicrosoftOffice or OneDrive Cached Credential. They often contain your personal email address. - Remove personal account entries
Click the arrow to expand each personal account entry, then click Remove. Confirm the deletion. Do not remove work account entries unless you want to sign in again. - Restart OneDrive
Right-click the OneDrive icon and select Close OneDrive. Launch OneDrive from the Start menu. It should now prompt you to sign in. Use your work account credentials.
Method 3: Reset OneDrive Using the Command Line
- Close OneDrive completely
Right-click the OneDrive icon in the system tray and select Close OneDrive. Ensure no OneDrive process is running in Task Manager. - Open a Run dialog
Press the Windows key + R to open the Run command box. - Run the reset command
Type%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. A Command Prompt window will appear briefly. Wait 30 seconds. - Launch OneDrive again
Press Windows key + R again and type%localappdata%\Microsoft\OneDrive\onedrive.exe. Press Enter. OneDrive will restart and show the setup screen. - Sign in with the work account
Enter your work email address and complete the sign-in process. The reset clears all cached account preferences, so OneDrive will treat the work account as the primary one.
If OneDrive Still Opens the Personal Account After These Fixes
OneDrive Opens Personal Account After Unlinking
If OneDrive still opens the personal account after unlinking, the personal account token may be stored in the Windows registry. To remove it, open Registry Editor by pressing Windows key + R, typing regedit, and pressing Enter. Navigate to HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts. Right-click the subkey that contains your personal email address and select Delete. Restart OneDrive and sign in with the work account only.
OneDrive Keeps Asking for Personal Account Password
This happens when a personal account is still linked in the Microsoft 365 apps. Open any Office app like Word or Excel. Go to File > Account. Under User Information, click Sign Out for the personal account. Close the app and restart OneDrive. The personal account prompt should stop.
Work Account Sync Fails After Switching
If your work files stop syncing after switching accounts, run the OneDrive sync troubleshooter. Open Settings > System > Troubleshoot > Other troubleshooters. Click Run next to OneDrive sync problems. The troubleshooter will reset the sync relationship without affecting your files.
OneDrive Personal Account vs Work Account: Key Differences
| Item | Personal Account | Work or School Account |
|---|---|---|
| Sign-in email | Outlook.com, Hotmail, or Live.com | Your organization domain email |
| Storage limit | 5 GB free | 1 TB or more per user license |
| Admin control | No central management | Managed by Microsoft 365 admin center |
| File sharing | Public sharing links | Internal and external sharing with compliance rules |
| Known Folder Move | Not available | Supported for Desktop, Documents, and Pictures |
| Co-authoring | Limited to personal files | Full co-authoring with version history |
After unlinking the personal account and clearing credentials, OneDrive for Business should open your work account every time. To prevent this issue in the future, sign in with the work account first when setting up OneDrive on a new PC. If you need both accounts, use the OneDrive web app for the personal account and the desktop app for the work account. The OneDrive desktop app supports only one primary account at a time for sync operations.