Fix Windows File Explorer Account Disconnected Error 50058
Question details
The user needs to resolve an issue where Windows File Explorer repeatedly returns to the account-selection screen during sign-in, displaying an account disconnected error (Error 50058) and hiding OneDrive files.

- Product
- Windows File Explorer / OneDrive
- Device & OS
- Windows 10, Windows 11
- Scenario
- Attempting to access synchronized files or sign into a Microsoft account through Windows File Explorer.
- Observed behavior
- File Explorer reports that the Microsoft account is disconnected, gets stuck in an account-selection loop with Error 50058, and OneDrive documents are missing from the system.
Make sure you have your correct Microsoft work or school account credentials available, and save any open documents locally to prevent data loss before resetting your account connections.
Reset the OneDrive Desktop Application
Resetting OneDrive clears temporary sync caches and forces the app to refresh its connection with your Microsoft account, which often resolves Error 50058.
This process will not delete any of your locally saved files or files stored in your cloud storage. It merely resets the sync application's configuration state.
Press the Windows key + R on your keyboard simultaneously to open the Run dialog box.
Copy and paste the following command into the Run window: %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and click OK.
Wait a few minutes for the OneDrive cloud icon to reappear in your system tray. If it does not reappear automatically, open the Start menu, search for 'OneDrive', and launch it manually.

Disconnect and Reconnect Your Work or School Account
If resetting OneDrive does not clear the sign-in loop, you must manually remove the problematic account credential from Windows Settings and authenticate it again.
Switch to WPS Office for a Hassle-Free Experience
If persistent Microsoft account sign-in loops and Error 50058 keep interrupting your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible alternative that lets you edit documents locally without relying on forced cloud syncs or complex account dependencies.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for Windows.
- 2. Install Quickly: Run the installer and follow the lightweight setup process, which takes only seconds.
- 3. Open Your Office Files: Right-click any existing Microsoft Word, Excel, or PowerPoint document and choose to open it smoothly with WPS Office.

Frequently Asked Questions
What exactly causes Error 50058 in Windows File Explorer?
Error 50058 typically occurs when a single sign-on (SSO) session expires, credential tokens become corrupted, or the system fails to silently authenticate your Microsoft account in the background. This prompts Windows to constantly ask for sign-in verification.
Will resetting OneDrive delete my locally saved files?
No, executing the reset command only refreshes the OneDrive application's sync cache and account state. Your locally saved files and any data already backed up to the cloud remain completely safe.
Why did my OneDrive documents suddenly go missing?
When File Explorer encounters an account disconnection error, the OneDrive sync client halts its operations to protect data integrity. If your files were configured as 'Files On-Demand' (cloud-only), they will temporarily disappear from File Explorer until the account connection is fully restored.




