Fix OneDrive Signing Out After Shutting Down Windows
Question details
The user needs to resolve an issue where the OneDrive application either fails to start or loses account credentials after the computer is restarted.
- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Rebooting or shutting down the Windows PC, which may have occurred after a recent Windows username change.
- Observed behavior
- OneDrive does not maintain its signed-in state or fails to launch automatically upon startup, requiring manual intervention to log in again after every boot.
Before proceeding, ensure you have your correct Microsoft account email and password ready, as you will need to sign back into OneDrive to restore the connection.
Clear Credentials and Reset OneDrive
Use this solution if OneDrive launches automatically but forgets your login credentials and requires you to sign in every time you boot your PC.
When you change a Windows username or experience a system glitch, the authentication tokens stored in Windows can become corrupted. Clearing these old credentials and resetting the OneDrive application allows it to rebuild a secure, persistent connection.
Search for 'Credential Manager' in the Windows Start menu and open it. Click on 'Windows Credentials' and remove any entries that mention 'OneDrive' or 'MicrosoftAccount'.
Press the Windows Key + R to open the Run dialog. Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' and press Enter. The OneDrive icon in your system tray will disappear and reappear after a minute.
Press Windows Key + R, type 'services.msc', and press Enter. Scroll down to find the 'Web Account Manager' service, right-click it, select 'Properties', and ensure the Startup type is set to 'Automatic'.
Launch OneDrive from the Start menu and log in with your Microsoft credentials to establish a fresh, persistent connection.
Enable OneDrive Automatic Startup
Apply this solution if you discover that OneDrive simply isn't launching when Windows starts, rather than fully disconnecting your account.
Experience Seamless Cloud Syncing with WPS Office
If you are tired of dealing with persistent login issues and syncing glitches with Microsoft Office and OneDrive, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with its own reliable built-in cloud storage, while fully supporting all your existing Microsoft Office files.
- 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite on your Windows PC.
- 2. Activate Cloud Storage: Launch the application and sign in with your email or Google account to instantly activate your free WPS Cloud storage.
- 3. Open and Edit Files: Open your existing Microsoft Office files directly in WPS Office and enjoy a familiar, easy-to-use interface.

Frequently Asked Questions
Why does OneDrive sign me out after changing my Windows username?
Changing your Windows username can disrupt the file paths and the secure credential tokens stored in the Windows Credential Manager. Clearing the old OneDrive credentials and signing in again forces Windows to issue a new, valid token under your new username.
How do I know if OneDrive is failing to start or just logging me out?
Check the Windows system tray in the bottom-right corner of your screen after a restart. If the OneDrive cloud icon is completely missing, the app failed to start. If the icon is present but has a slash through it or prompts you for your email, the app is running but has signed you out.
What is the Web Account Manager service?
The Web Account Manager is a core Windows service that handles secure logins and authentications for Windows applications, including Microsoft Store apps and OneDrive. If this service is disabled or set to manual, OneDrive may fail to remember your login information between reboots.




