Fixing OneDrive Asking for Login on Every Windows Startup
Have you ever found yourself repeatedly logging into OneDrive every time your Windows PC starts, even though you just signed in the last session? You’re not alone. This is a common problem for both personal and enterprise users of Microsoft 365. Fortunately, this issue can be resolved by identifying its root causes and applying the right solutions.
In this post, I’ll walk you through step-by-step troubleshooting to stop OneDrive from prompting for login every time your PC boots up.
🧠 Why Does OneDrive Keep Asking Me to Sign In?
This issue typically occurs due to:
- Corrupted or outdated cached credentials
- Incomplete browser-based authentication
- Disabled auto-start settings for OneDrive
- A corrupted OneDrive installation or sync issues
- Group Policy or registry restrictions (especially in corporate environments)
- Network trust/authentication issues
Let’s troubleshoot each of these possibilities.
✅ Step-by-Step Troubleshooting Guide
1. 🔐 Sign in via Default Browser at Least Once
OneDrive often relies on a browser-based authentication flow to maintain your login session—especially in environments using Azure AD or Microsoft 365. If you haven’t signed in through your default browser, OneDrive might struggle to persist your login.
Steps:
- Open your default browser (e.g., Microsoft Edge, Chrome).
- Navigate to https://onedrive.live.com.
- Sign in with the same Microsoft account used in OneDrive.
- When prompted, check “Keep me signed in”.
- Close the browser and restart your PC.
This small but crucial step helps OneDrive authenticate properly across system sessions.
2. 🗝️ Clear Cached Credentials
Corrupted or outdated credentials stored in Windows Credential Manager can break your OneDrive session.
Steps:
- Open Credential Manager via Start menu.
- Select Windows Credentials.
- Look for entries like:
OneDrive Cached Credential
MicrosoftOffice16_Data:SSPI
microsoftonline.com
entries
- Remove those credentials.
- Restart and re-sign in to OneDrive when prompted.
3. ⚙️ Verify OneDrive Auto Start Settings
If OneDrive isn’t set to auto-start properly, it may not retain your session.
Steps:
- Right-click the OneDrive cloud icon in the taskbar.
- Click Settings.
- Under the Settings tab, make sure Start OneDrive automatically when I sign in to Windows is checked.
- Click OK and reboot.
4. 🚑 Repair or Reinstall OneDrive
A corrupt installation or outdated version could also be to blame.
Steps:
- Download the latest OneDrive version: https://www.microsoft.com/en-us/microsoft-365/onedrive/download
- Uninstall OneDrive via Settings > Apps > Installed apps.
- Reinstall using the latest installer.
- Launch OneDrive and log in again.
5. 🧽 Reset OneDrive Completely
Resetting OneDrive clears the local configuration without removing files.
Steps:
- Press
Win + R
, then run: shellCopyEdit%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
- If OneDrive doesn’t restart automatically, run: shellCopyEdit
%localappdata%\Microsoft\OneDrive\onedrive.exe
- Re-sign in and reselect your sync folders if prompted.
6. 🪟 Apply Registry Fixes (Advanced)
Be cautious—editing the registry incorrectly can cause issues. Back up before proceeding.
Steps:
- Open the Registry Editor (
regedit
). - Navigate to: CopyEdit
HKEY_CURRENT_USER\Software\Microsoft\OneDrive
- Delete the
UserFolder
key if it exists. - Then go to: sqlCopyEdit
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity
- Delete subkeys related to identity or sign-in persistence.
- Restart your PC.
7. 🛡️ Check Group Policy and Domain Settings (For IT Admins)
In domain-joined environments, policy restrictions can override OneDrive settings.
Steps:
- Run
gpedit.msc
. - Navigate to: nginxCopyEdit
Computer Configuration > Administrative Templates > Windows Components > OneDrive
- Ensure Prevent the usage of OneDrive for file storage is Not Configured.
- Check under: pgsqlCopyEdit
User Configuration > Administrative Templates > System > Logon
for settings like Always wait for the network at computer startup and logon.
8. 🌐 Ensure Network Trust & Connectivity
Authentication relies on proper network setup. If you’re on a public or metered network, OneDrive may not authenticate at boot.
Checklist:
- Change your network type to Private.
- Temporarily disable firewall/antivirus to test.
- Whitelist Microsoft domains: markdownCopyEdit
*.onedrive.com *.live.com *.microsoftonline.com *.sharepoint.com
9. 🔍 Use Event Viewer for Deeper Insight
OneDrive errors are often logged to Event Viewer.
Steps:
- Press
Win + R
, typeeventvwr.msc
, press Enter. - Go to Windows Logs > Application.
- Look for entries with sources like
OneDrive
,User Profile Service
, orOffice16
.
A persistent OneDrive login prompt can be disruptive, but thankfully, it’s often easy to fix once you address the right root cause. Start with the simplest checks—like signing in via the browser—then move toward more advanced fixes such as credential cleanup, Group Policy review, or full reset.
By methodically working through the steps in this guide, you should be able to resolve the issue and ensure that OneDrive works smoothly with each reboot.
Discover more from Dellenny
Subscribe to get the latest posts sent to your email.