OneDrive Won’t Sign In on Windows? Here’s the Fix

OneDrive keeps putting a sign-in window in front of you, and no matter what you enter, it doesn’t go through — the window closes and reopens, an error briefly flashes before disappearing, or the app just sits there with a spinning cursor and never gets anywhere.

This is a distinct problem from a sync that’s stuck moving files. Here, the connection to a working, signed-in account never gets established in the first place, which means none of the usual sync troubleshooting applies yet.

Quick explanation: this guide covers why a sign-in failure is a different problem than a stuck sync, credentials Windows has cached from a previous account, a stale token left behind after switching accounts, a work or school account conflicting with a personal sign-in, a firewall or proxy blocking Microsoft’s sign-in servers, and when reinstalling OneDrive is the only option left.

For the full feature list and usage details, you can also visit the Fixyfier Documentation.

Quick Answer

Most OneDrive sign-in failures come down to something already cached getting in the way rather than the credentials themselves being wrong: an old saved credential in Windows’ Credential Manager, a leftover token from a previously linked account, or a work or school account quietly taking priority over the personal one you’re trying to use. A firewall, proxy, or restrictive network blocking Microsoft’s authentication servers outright is the next most common cause, especially on a work network or public Wi-Fi. Clearing the cached credential tied to OneDrive and confirming the sign-in servers are actually reachable resolves the large majority of cases.

Why a Sign-In Failure Is a Different Problem Than a Stuck Sync

A sync that’s stuck still has a working, signed-in account behind it — files just aren’t moving. A sign-in failure means that relationship never got established at all, so none of the usual sync fixes — restarting the process, checking the activity center, resetting the app — do anything, because there’s no active sync to restart in the first place.
That distinction matters because the actual fixes live somewhere completely different — not in OneDrive’s own sync engine, but in how Windows is storing and passing along the credentials OneDrive is trying to use to authenticate.
The rest of this guide works through the specific things that block a sign-in from completing, starting with the most common one: credentials Windows already has cached from before.

OneDrive Rejecting Credentials That Are Actually Correct

Windows’ Credential Manager can hold onto an old OneDrive or Microsoft account credential from a previous sign-in, and when that happens, entering the correct password now doesn’t actually reach Microsoft — Windows just keeps replaying the stale saved one back instead.
This is worth confirming directly rather than guessing, since the fix is simply removing the one outdated entry rather than anything more involved.
cmdkey /list
Fixyfier has no shortcut for this one — Credential Manager is opened from Control Panel, or listed with the cmdkey /list command above — and the stale OneDrive entry is the only thing that needs removing.

A Stale Sign-In Token Left Over From a Previous Account

If a different Microsoft account was ever linked to OneDrive on this PC — or the device was migrated from another profile — Windows can hang onto a leftover authentication token that conflicts with the account currently being signed in with.
Fully signing out of that old account under Settings > Accounts > Email & accounts, rather than just dismissing the OneDrive prompt, clears that leftover token so the new sign-in isn’t competing with it.
Fixyfier’s View User Information shortcut confirms exactly which Microsoft account is currently signed into Windows, which is the fastest way to check whether it actually matches the one OneDrive is trying to use.

A Work or School Account Conflicting With a Personal Sign-In

Some organizations enroll a Windows device with a work or school account, and that enrollment can quietly take priority when OneDrive tries to sign in — especially on a managed device where someone is trying to use their personal OneDrive account instead.
Checking Settings > Accounts > Access work or school shows whether the device is enrolled this way. Some organizational policies block personal OneDrive accounts outright, which shows up as a sign-in that simply never completes rather than a clear “access denied” message.
Fixyfier’s Windows Tools section includes Open Computer Management, where Local Users and Groups confirms exactly which accounts exist on the device if this needs to be untangled further.
NordVPN
One Thing Worth Knowing

Testing a Sign-In From a Different Network? Keep It Secured

Trying a sign-in from a phone hotspot or public Wi-Fi is a reasonable way to isolate whether a work firewall or proxy is actually the cause. NordVPN keeps that alternate connection encrypted regardless of which network it happens to be.

Secure This Sign-In

A Firewall, Proxy, or Restrictive Network Blocking Microsoft’s Sign-In Servers

Corporate firewalls, proxies, and some always-on VPNs sometimes block the exact domains OneDrive needs to reach to complete authentication, which produces a sign-in window that spins or times out rather than showing a clear error message.
This is worth ruling in or out directly, since it changes where the actual fix needs to happen — nothing on the PC itself will resolve a sign-in that’s being blocked upstream on the network.
Fixyfier’s Security & Privacy section includes Open Windows Security, where Firewall & network protection is the place to check whether an existing rule on this PC is blocking OneDrive specifically, separate from anything happening further out on the network.

When Reinstalling OneDrive Is the Only Option Left

If credentials are confirmed correct, no conflicting account is involved, and the network can clearly reach Microsoft’s sign-in servers, a corrupted OneDrive install itself becomes the most likely remaining explanation.
Uninstalling OneDrive completely through Settings > Apps and reinstalling it fresh clears out whatever the sign-in process was getting stuck on, and is a genuine last resort once everything else here has been checked.
If OneDrive signs in without any trouble but then gets stuck actually moving files afterward, that’s a different and more specific problem covered in the guide on OneDrive stuck syncing on Windows.

Frequently Asked Questions

Will removing a cached credential in Credential Manager sign me out of anything else?

No — removing a specific stored entry only affects that one saved credential. It has no effect on saved passwords in a browser or on any other app’s own sign-in state.

Does resetting OneDrive fix a sign-in problem the same way it fixes a stuck sync?

Not usually. A reset clears OneDrive’s sync state and cache, but it doesn’t touch cached Windows credentials or account tokens — which are the actual cause behind most sign-in failures — so it often makes no difference here.

Can antivirus software cause OneDrive sign-in failures?

Yes. Some third-party antivirus and endpoint-protection tools intercept HTTPS connections for scanning, which can interfere with Microsoft’s authentication handshake in much the same way a proxy would.

Let Fixyfier Keep the Accounts and Credentials Behind It Straight

Fixyfier’s System Tools section puts View User Information a click away for the account side, its Security & Privacy section opens Windows Security for the firewall rule, and its Windows Tools section opens Computer Management for the accounts on the device — covering the places most OneDrive sign-in failures trace back to, with the cached credential itself removed from Control Panel’s Credential Manager.