Dealing with OneDrive getting stuck asking for sign-in or endlessly looping? Happens more often than you’d think, especially after Windows updates or switching accounts. When you sign in, it kicks back asking again, and sometimes it never actually connects. Kind of annoying, especially since everything’s supposed to sync smoothly. The good news? Most of these issues boil down to cache problems, corrupted files, or stale credentials stored somewhere in Windows. Luckily, there are several fixes that tend to solve the problem without having to dig into super complicated stuff.
How to Fix OneDrive Sign-in Loop in Windows 11
Fix 1 – Reset OneDrive
This one is the classic go-to. Resets the app’s local state without wiping your cloud files, because of course, your data’s safe online. Sometimes, the local cache gets corrupted, and that’s what throws the whole sign-in process out of whack.
- Press Win + R to open the Run dialog.
- Paste this command and hit Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - If you get a „Windows cannot find“ error, use this alternative:
%programfiles(x86)%\Microsoft OneDrive\onedrive.exe /reset- Wait about 30 seconds. The icon might disappear and reappear—no worries.
- OneDrive should automatically restart after a reset, and it’ll ask you to sign in again.
- Sign in. This often clears the loop and gets everything syncing properly.
This reset doesn’t delete your files. They’re still in OneDrive cloud. It just refreshes the local state, which somehow helps fix that endless login cycle.
Fix 2 – Unlink and Reconnect Your Account
If just resetting didn’t do it, then maybe the account link is corrupted or stale. Unlinking your account and then signing back in can do wonders.
- Right-click the OneDrive cloud icon in the system tray.
- Pick the gear icon and go to Settings.
- Switch to the Account tab.
- Click Unlink this PC.
- Confirm by clicking Unlink account.
- Restart your PC — yep, just a quick reboot to clear out any lingering issues.
- Open OneDrive again and sign in with your Microsoft account.
This effectively resets the connection, so if the previous sign-in was corrupt or stuck, this will usually fix it. On some setups, you might see a brief sign-in prompt and then smooth sailing from there.
Fix 3 – Clear Credentials in Windows Credential Manager
Sometimes, Windows stores old or broken login tokens. Clearing out these credentials can force re-authentication without the bad tokens messing things up.
- Click Start and type
Credential Manager. Open it. - Switch to the Windows Credentials tab.
- Look for entries with “OneDrive” or “Microsoft Account.”
- Click each and choose Remove.
- Once cleared, restart OneDrive and try signing in again. It’ll ask for fresh credentials, hopefully fixing that loop.
Honestly, this is one of those quiet fixes that clears out old tokens and prevents weird sign-in hangs. Worked on one setup, but not on another — go figure.
Fix 4 – Reinstall OneDrive Completely
If all else fails, full uninstall and reinstall gets rid of any corrupted or broken files. Sometimes, OneDrive just needs a fresh start, especially after heavy Windows updates or if it’s been behaving weird for a while.
- Open Settings > Apps > Installed apps.
- Find Microsoft OneDrive.
- Click the three dots next to it and select Uninstall.
- Reboot your PC.
- Go to Microsoft’s official OneDrive download page and grab the latest version.
- Install, launch, and sign in with your account. Usually, this nukes the sign-in loop problem.
Fix 5 – Check Your Network and Firewall Settings
Sometimes, it’s not OneDrive’s fault at all. VPNs, firewalls, or DNS issues can block the sign-in servers from responding. Testing on a different network or disabling VPNs temporarily can reveal if that’s the culprit.
- Disable any VPNs and try signing in again.
- Switch Wi-Fi networks or move to a wired connection if possible.
- Disable firewalls temporarily — but make sure to turn them back on afterward!
How to Prevent Future Sign-In Loops
- Keep OneDrive updated — updates often fix sign-in bugs.
- Avoid switching between personal and work accounts frequently if not necessary.
- After major Windows updates, check Credential Manager to clear out old credentials.
- Try to avoid VPNs during initial sign-ins unless absolutely needed.
People Also Ask
How do I fix OneDrive stuck on signing in?
Usually, a quick Win + R and pasting %localappdata%\Microsoft\OneDrive\onedrive.exe /reset helps. Wait about 30 seconds, then sign in again.
Why does OneDrive take so long to sign in?
Most of the time, it’s stale credentials or network hiccups. Clearing Credential Manager entries and disabling VPNs can speed things up.
How do I stop Windows 11 from asking for OneDrive?
Unlink your account via OneDrive settings > Account > Unlink this PC. Or uninstall OneDrive from Apps > Installed apps — whatever’s easier.
Hopefully, this outright helps someone avoid endless frustration. It’s kind of weird, but these fixes tend to work across different setups without too much fuss. Good luck, and fingers crossed this saves a few hours for someone.
Summary
- Reset OneDrive via the command in
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - Unlink and relink your Microsoft account in OneDrive settings
- Clear old credentials from Credential Manager
- Full reinstall if needed
- Check network and disable VPNs temporarily
Wrap-up
In the end, most of the loop issues come down to caching stuff or broken credentials. Resetting or reinstalling often does the trick. Sometimes, network stuff sneaks in and throws a wrench in the works. If none of these fixes work, it might be worth checking for Windows updates or waiting a bit — Microsoft sometimes drops patches for these sign-in bugs. Good luck sorting it out — hopefully, this helps to cut down the hassle a bit!