logo
search
Sign-in & Login Problems

Fix OneDrive Sign-In Window Closes Automatically on Windows 11

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user is unable to sign into OneDrive because the authentication window disappears instantly upon opening.

Product
Microsoft OneDrive
Device & OS
Windows 11
Scenario
Attempting to sign in to OneDrive from the taskbar icon on a new laptop.
Observed behavior
The sign-in window closes immediately without asking for credentials or displaying any synchronization options.
Before you start

Ensure your Windows 11 system is fully updated and temporarily disable any third-party antivirus software that might be blocking the OneDrive authentication process.

Solution 1Recommended

Reset the OneDrive Desktop App

Resetting OneDrive clears its internal cache and can resolve unexpected crashes or sign-in loop issues.

A corrupted local cache often causes the OneDrive application interface to crash before it can load the sign-in web wrapper. A complete reset forces the app to rebuild this configuration.

1
Open the Run dialog

Press the Windows key + R simultaneously on your keyboard to open the Run command window.

2
Execute the reset command

Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' into the box and press Enter.

3
Wait for restart

Wait a few minutes for the OneDrive cloud icon to disappear and reappear in your system tray taskbar.

4
Launch manually if needed

If the icon does not reappear automatically, open the Start menu, search for OneDrive, and click to launch it, then attempt to sign in.

Free Microsoft Office alternative

Experience a Seamless and Lightweight Office Suite with WPS Office

If you are experiencing persistent issues with Microsoft services like OneDrive on your new Windows 11 laptop, consider switching to WPS Office. It provides a highly compatible, free, and lightweight alternative for your daily document creation needs, complete with its own secure cloud synchronization.

  1. 1. Download the installer: Visit the official WPS Office website and download the free installation package for Windows.
  2. 2. Install the software: Run the setup file and follow the quick installation wizard to set up WPS Office on your laptop.
  3. 3. Sign in for cloud features: Create a free account to unlock built-in WPS Cloud storage and begin editing your documents immediately.
Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint files.Includes built-in WPS Cloud storage to securely sync documents across all your devices without relying on third-party apps.Lightweight installation that operates smoothly and consumes fewer system resources on Windows 11.Features a familiar, easy-to-use tabbed interface so you can migrate seamlessly with zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my OneDrive close immediately after clicking sign in?

This usually happens due to a corrupted OneDrive cache, conflicting background applications, or a damaged Windows user profile that prevents the authentication window from loading properly.

Will resetting OneDrive delete any of my locally stored files?

No, resetting the OneDrive app only clears its configuration and synchronization cache. Your files remain safely stored in the cloud and untouched within your local OneDrive folder.

How do I contact Microsoft Support if the issue persists?

You can reach Microsoft Support by opening the 'Get Help' app built into Windows 11, briefly describing your OneDrive sign-in issue, and following the prompts to chat with a support agent.