How To Fix Windows Continuously Asking For Credentials (2026)
Windows can pop up a credentials box again and again even after you type the right password.
The box usually comes from one saved entry, one app setting or one sign-in option that no longer matches your account.
This guide follows Microsoft’s own support pages, starting with the quickest checks.
Table of Contents
- Quick answer: where the prompt comes from
- Work out which app is asking
- Open Credential Manager
- Delete a saved credential that no longer works
- Manage saved entries with cmdkey
- Outlook keeps asking for your password
- Change the Logon network security setting
- Outlook with an on-premises mailbox and a Microsoft 365 mailbox
- Run Microsoft’s Outlook password prompt diagnostic
- OneDrive keeps asking you to sign in
- Check your Windows sign-in options
- Related fixes on this site
- If the prompt still comes back
- More Windows fix guides
Quick answer: where the prompt comes from
| Where you see the prompt | What to check first | Section |
|---|---|---|
| Windows Security box when you open a server or network location | The saved entry in Credential Manager | Delete a saved credential |
| Outlook keeps asking for your password | Outlook’s logon setting or the Microsoft 365 sign-in method | Outlook sections |
| OneDrive will not stay signed in | The cached sign-in settings file | OneDrive section |
| The Windows sign-in screen itself | Your sign-in options | Sign-in options section |
Work out which app is asking
Read the title bar of the box, because a prompt from Outlook, OneDrive or Windows Security needs a different fix.
Note the server, drive or account name shown in the box, since that name is what you will look for in the saved list.
Restart the PC once before changing anything, so a stuck sign-in session is ruled out.
Open Credential Manager
- Type credential manager in the search box on the taskbar.
- Select Credential Manager Control panel.
- Choose Web Credentials or Windows Credentials, depending on what is asking.
Microsoft describes Credential Manager as the place to view and delete your saved sign-in details for websites, connected apps and networks.
| Credential type | Use it for |
|---|---|
| Web Credentials | Saved sign-ins for websites |
| Windows Credentials | Saved sign-ins for apps and network locations |
Delete a saved credential that no longer works
Open the list that matches the prompt and look for the server, drive or account name you noted earlier.
Remove that entry, then open the app or network location again.
When Windows asks, type the current user name and password so it stores a fresh, correct entry.
Leave entries you do not recognize alone, because other apps and services may rely on them.
Manage saved entries with cmdkey
If the Control Panel list is hard to read, Microsoft documents the cmdkey command for the same job.
Open Command Prompt and run cmdkey /list to display every stored user name and credential.
Run cmdkey /delete:server01, replacing server01 with the target name from the list, to remove one entry.
| Command part | What it does |
|---|---|
/list | Shows all stored user names and credentials, or one target if you add its name |
/add:name /user:account | Stores a user name for that computer or domain |
/pass:password | Stores the password too; if left out, Windows asks for it |
/delete:name | Deletes the entry for that target |
/delete /ras | Deletes the credential stored by remote access |
Microsoft’s example cmdkey /add:server01 /user:mikedan stores only the user name, so Windows prompts for the password whenever that server is opened.
That is expected behavior, so add /pass only if you want the password stored.
Outlook keeps asking for your password
Microsoft names one cause for repeated Outlook prompts with Microsoft 365: the Logon network security setting is set to something other than Anonymous Authentication.
The prompt then returns repeatedly, and canceling it can end in the message that the connection to Microsoft Exchange is unavailable.
Microsoft says Outlook 2016 and some recent Outlook 2013 builds are not affected, because they have this setting disabled or removed.
Change the Logon network security setting
- Close Outlook.
- Open Control Panel and double-click Mail.
- Select Show Profiles, choose your profile and select Properties.
- Select E-mail Accounts, pick your account and select Change.
- Select More Settings, then open the Security tab of the Microsoft Exchange box.
- In the Logon network security list, choose Anonymous Authentication and select OK.
- Select Next, Finish, then Close on each remaining window.
If your Security tab has no such list, skip this fix, because your Outlook version is one Microsoft lists as unaffected.
Outlook with an on-premises mailbox and a Microsoft 365 mailbox
Microsoft describes a second case where Outlook reaches one mailbox over RPC and another in Microsoft 365, or where a mailbox was migrated to Microsoft 365 from an RPC-based Exchange server.
Outlook then sends typed credentials instead of getting a sign-in token, which produces the prompts.
| Item | Value Microsoft lists |
|---|---|
| Registry key | HKEY_CURRENT_USER\Software\Microsoft\Exchange |
| New value type | DWORD |
| Value name | AlwaysUseMSOAuthForAutoDiscover |
| Value data | 1 |
Back up the registry and close Outlook before adding this value, since Microsoft warns that incorrect registry changes can cause serious problems.
For Office 2013, Microsoft says to install the December 2015 Outlook and Office updates first, while Office 2016 needs no update for this value.
Run Microsoft’s Outlook password prompt diagnostic
For Microsoft 365 and Exchange Online accounts, Microsoft offers a self-diagnostic named Diag: Outlook keeps asking for my password.
You can open it from Microsoft’s diagnostic link, and it runs automated checks before suggesting fixes.
The full guidance is on Microsoft’s page Outlook continually prompts for password when you try to connect to Microsoft 365.
OneDrive keeps asking you to sign in
Microsoft says expired credentials on a PC can stop OneDrive from signing in and can also create duplicate files that carry the computer name.
- Press Windows key + R to open the Run box.
- Enter
%localappdata%\Microsoft\OneDrive\settingsand select OK. - Delete the file
PreSignInSettingsConfig.json.
If that does not help, Microsoft says to uninstall and reinstall OneDrive, and that doing so does not delete your files, which stay available at OneDrive.com.
The steps are on Microsoft’s Clear OneDrive cached credentials page.
Check your Windows sign-in options
Go to Settings > Accounts > Sign-in options, or run ms-settings:signinoptions.
Here you can use Windows Hello face recognition, a fingerprint or a PIN instead of a password, or sign in with a physical security key.
The setting Only allow Windows Hello sign-in turns off password sign-in for Microsoft accounts on that device, so switch it off if you still need to type a password.
Some options may not appear, depending on how your device is configured.
On the sign-in screen, select I forgot my password or I forgot my PIN if the saved sign-in no longer works.
Related fixes on this site
- How to fix a Windows 11 PIN that is not working or forgotten
- How to fix Windows Hello face or fingerprint not working
- How to fix a mapped drive not reconnecting in Windows 11
- How to fix a forgotten Microsoft password on Windows 11
If the prompt still comes back
Note the exact app name and the target name in the box, then repeat the Credential Manager check for that one target.
On a work or school PC, the prompt may come from your organization’s settings, so ask your IT administrator rather than changing policies yourself.
Only use Microsoft’s official recovery steps if you are locked out of an account.
More Windows fix guides
- How To Fix Windows Stuck On Restarting (2026)
- How To Fix Windows Stuck On "Getting Windows Ready" (2026)
- Thumbnails Not Showing In File Explorer In Windows 11 (2026)
- How To Fix No Drives Found During Windows 11 Setup (2026)
- How To Fix Boot Configuration Data Missing In Windows 11 (2026)
- Fix Elgato Capture Card Or Cam Link Not Working In Windows (2026)
See all: Windows 11 Guides