OneDrive should retain its session after the first successful sign-in and start automatically without requesting credentials at every Windows logon.^1^
Refresh the saved OneDrive sign-in
- Select the OneDrive cloud icon in the notification area near the clock. If it is hidden, select the Show hidden icons arrow.
- Select Help & Settings (gear) → Settings → Account.
- Select Unlink this PC → Unlink account.
- Press Windows key + R.
- Enter:
%localappdata%\Microsoft\OneDrive\settings
- Select OK, then delete PreSignInSettingsConfig.json.
- Open Start, search for OneDrive, and launch it.
- Sign in once with your Microsoft account. When told that the OneDrive folder already exists, select Use this folder.
OneDrive will re-establish the sync connection. It initially uses file placeholders rather than downloading every cloud file again.^2^
If it still asks after every restart
Reset the OneDrive desktop app:
- Press Windows key + R.
- Run:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
- If Windows cannot find it, run:
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset
- If that also fails, run:
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset
- Open Start, search for OneDrive, and launch it again.
A reset disconnects and rebuilds OneDrive’s sync settings but does not delete files or cloud data. A full resynchronization follows, and any previously selected folder choices may need to be configured again.^3^
If this is a work or school account on a managed computer, contact the organization’s IT administrator if the prompt continues, because account settings may be controlled centrally.
References
- Force onedrive to prompt for login credentials - Microsoft Q&A
- Windows
- Reset OneDrive | Microsoft Support