|

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

Where you see the promptWhat to check firstSection
Windows Security box when you open a server or network locationThe saved entry in Credential ManagerDelete a saved credential
Outlook keeps asking for your passwordOutlook’s logon setting or the Microsoft 365 sign-in methodOutlook sections
OneDrive will not stay signed inThe cached sign-in settings fileOneDrive section
The Windows sign-in screen itselfYour sign-in optionsSign-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

  1. Type credential manager in the search box on the taskbar.
  2. Select Credential Manager Control panel.
  3. 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 typeUse it for
Web CredentialsSaved sign-ins for websites
Windows CredentialsSaved 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 partWhat it does
/listShows all stored user names and credentials, or one target if you add its name
/add:name /user:accountStores a user name for that computer or domain
/pass:passwordStores the password too; if left out, Windows asks for it
/delete:nameDeletes the entry for that target
/delete /rasDeletes 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

  1. Close Outlook.
  2. Open Control Panel and double-click Mail.
  3. Select Show Profiles, choose your profile and select Properties.
  4. Select E-mail Accounts, pick your account and select Change.
  5. Select More Settings, then open the Security tab of the Microsoft Exchange box.
  6. In the Logon network security list, choose Anonymous Authentication and select OK.
  7. 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.

ItemValue Microsoft lists
Registry keyHKEY_CURRENT_USER\Software\Microsoft\Exchange
New value typeDWORD
Value nameAlwaysUseMSOAuthForAutoDiscover
Value data1

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.

  1. Press Windows key + R to open the Run box.
  2. Enter %localappdata%\Microsoft\OneDrive\settings and select OK.
  3. 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.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *