A Microsoft file hosting and synchronization service.
Reset OneDrive’s local state and cached pre-sign-in configuration rather than reinstalling Windows or OneDrive again.
1. Reset OneDrive completely
Resetting disconnects the sync relationship and rebuilds OneDrive’s settings, but it does not delete files stored online.^1^
- End Microsoft OneDrive in Task Manager if it is repeatedly closing and reopening.
- Press Windows+R, enter:
wsreset.exe
- After the Microsoft Store opens, close it.
- Press Windows+R again and run:
%localappdata%\Microsoft\OneDrive\OneDrive.exe /reset
- If Windows cannot find that path, try:
C:\Program Files\Microsoft OneDrive\OneDrive.exe /reset
- Wait one or two minutes. Open Start, search for OneDrive, and launch the desktop app.
- Enter the personal Microsoft account address and check whether the sign-in window now remains open.
2. Clear OneDrive’s pre-sign-in cache
If the window still closes after the email address is entered:
- End
OneDrive.exeagain in Task Manager. - Press Windows+R.
- Enter:
%localappdata%\Microsoft\OneDrive\settings
- Delete
PreSignInSettingsConfig.json. - Start OneDrive and try signing in again.
Microsoft documents deleting this file as the Windows procedure for clearing OneDrive’s cached credential configuration.^2^
Do not perform another standard uninstall/reinstall first; that has already failed and may leave this per-user configuration untouched.
3. Test for machine or network filtering
The failed cloud recovery may be unrelated, but together with OneDrive’s authentication failure it makes a network-path test worthwhile.
- Disconnect any VPN or third-party web-filtering/security software temporarily.
- Connect the desktop to a phone’s mobile hotspot instead of the normal router.
- Start OneDrive and attempt the sign-in.
Microsoft specifically recommends a mobile hotspot test when OneDrive cannot connect, because a firewall or internet provider can block the connection even when ordinary web browsing works.^3^
- If sign-in works on the hotspot: inspect the router, DNS filtering, firewall, or security product on the normal connection. Consumer OneDrive requires its documented authentication and storage hosts over TCP 80 and 443.^4^
- If it also fails on the hotspot: the fault remains local to this Windows installation rather than the Microsoft account or normal home network.
4. If the hotspot also fails
Install all available updates under Settings → Windows Update, including pending restarts, and then retry. Microsoft also recommends using the latest OneDrive version for sign-in problems.^5^
If OneDrive still closes, contact Microsoft Support from the Personal accounts → Technical support section of the OneDrive sign-in support page. Include:
- Windows version and build
- OneDrive version
- Exact time of a failed sign-in attempt
- Whether the hotspot changed the result
- That web, phone, and laptop access work
- That OneDrive/WebView2 reinstalls and multiple clean Windows installations made no difference
- That Windows cloud recovery also fails
Avoid another PC reset until the network test and local reset/cache steps are completed; the existing local and USB rebuilds already show that another identical reinstall is unlikely to add useful diagnostic information.
References