A Microsoft file hosting and synchronization service.
Follow these steps in order, since many initial actions are already completed:
- Confirm OneDrive app is installed correctly
- Open Start and type OneDrive.
- If the OneDrive desktop app does not appear, reinstall it using the latest installer and then try to sign in again.
- If it appears, do not run
/resetfrom a command prompt; instead use the Run dialog as below.
- Properly reset the OneDrive sync app
Since
onedrive.exe /resetwas not recognized, run it using the full path from Run:
- Press Windows key + R to open Run.
- Paste this and select OK:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - If a "Windows cannot find..." message appears, repeat Windows + R and try:
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset - If that also fails, repeat and try:
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset - After the reset finishes, manually start OneDrive:
- Select Start, type OneDrive, then open the OneDrive desktop app and sign in again.
- Clear OneDrive sign-in configuration Because there was a hardware change, clear cached sign-in configuration used by OneDrive:
- Press Windows key + R.
- Enter:
and select OK.%localappdata%\Microsoft\OneDrive\settings - Delete PreSignInSettingsConfig.json.
- Start OneDrive again from Start → OneDrive and sign in.
- Clear cached credentials (if not already done in this exact location) If the password loop persists:
- Press Windows key + R.
- Enter:
and select OK.%localappdata%\Microsoft\OneDrive\settings - Confirm PreSignInSettingsConfig.json is deleted.
- Restart OneDrive and attempt sign-in again.
- Verify account and connectivity If still stuck in a sign-in loop after the above:
- Confirm the username and password by signing in to the Microsoft Account portal in a browser.
- Ensure the latest OneDrive version is installed.
- If sign-in works in the browser but not in the app, check firewall/VPN/security software on the PC that might be blocking OneDrive sign-in endpoints.
If the loop continues after these steps, capture any exact error codes (for example 0x8004de80 or 0x8004de86) shown during sign-in and then repeat the reset and cached-credential steps above before trying again.
References: