Fix OneDrive Crashing Before Login Screen on Windows
Question details
Microsoft OneDrive crashes abruptly before the sign-in screen appears, making it impossible to log in, set up an account, or synchronize files.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to launch or sign into the desktop application to sync personal or work files.
- Observed behavior
- The application window closes unexpectedly before reaching the login prompt, and standard uninstallation and reinstallation do not resolve the issue.
Ensure your Windows operating system is up to date and temporarily save any open documents locally to prevent data loss during troubleshooting.
Reset the OneDrive Application
Executing a manual reset clears the application's configuration and cache, which often resolves unexpected startup crashes without affecting your stored files.
Resetting Microsoft OneDrive can fix syncing problems and startup crashes. This process resets all OneDrive settings, so it will perform a full sync afterward, which might take some time depending on your file volume.
Press the Windows key + R simultaneously on your keyboard to open the Run command window.
In the text box, type exact path `%localappdata%\Microsoft\OneDrive\OneDrive.exe /reset` and click OK or press Enter.
Wait for a couple of minutes. The OneDrive cloud icon should disappear from the system tray and reappear. If it does not restart automatically, open the Windows Start menu, type "OneDrive" in the search bar, and click the application to launch it.

Install the Latest Version and Check Event Logs
If resetting does not stop the crashes, installing the newest version from Microsoft and diagnosing the exact error code via Windows Event Viewer is the next logical step.
Try WPS Office for Seamless Document Management
While troubleshooting Microsoft OneDrive issues, you need a reliable suite to keep your work flowing. WPS Office is a free, lightweight alternative to Microsoft Office that offers robust tools and its own integrated cloud storage solution, ensuring your documents remain safe and accessible across all devices.
- 1. Download and Install: Visit the WPS Office website to download the free installer and follow the simple on-screen instructions to set it up.
- 2. Sign In to WPS Cloud: Launch the application and create a free account to instantly activate your personal cloud storage space.
- 3. Edit and Sync: Open any existing Microsoft Office document. Your changes will automatically save and sync to WPS Cloud without relying on external sync clients.

Frequently Asked Questions
Will I lose my files if I reset OneDrive using the Run command?
No, executing the reset command only clears the application's system cache and resets its settings. All your local files on your PC and your data stored in the cloud will remain completely safe and untouched.
Why does OneDrive crash immediately upon opening?
Immediate crashes are typically caused by corrupted application cache files, an outdated client version, conflicting background services, or a corrupted Windows user profile. A clean reset usually clears the corrupted cache causing the failure.
How do I access my files while the OneDrive desktop app is crashing?
Even if the desktop application is failing to launch, you can access, upload, and download all your synced files by visiting the OneDrive website through any web browser and signing in with your Microsoft account.
What should I look for in the Event Viewer to diagnose the crash?
In Event Viewer (Windows Logs > Application), look for 'Application Error' events where the Faulting Application Name is OneDrive.exe. The Faulting Module Name and Exception Code (e.g., 0xc0000005) can help identify if a specific DLL file or permission issue is causing the crash.




