If Windows keeps signing in to a network share, server, or application with the wrong NTLM account, there is no single “NTLM cache” button that clears everything. NTLM authentication can involve saved credentials, existing network connections, a running sign-in session, or credentials held by an application. The right fix depends on which one is causing the repeat login. Start with the least disruptive option: remove the saved credential for the specific server, close its active connections, and reconnect. Avoid deleting system security data or changing domain settings unless an administrator has confirmed that is necessary.
What Is the NTLM Cache?
NTLM is an authentication protocol used by Windows and some applications to verify a user’s identity when connecting to a computer or service. People often use “NTLM cache” to describe several different things, but Windows does not provide one general-purpose NTLM cache that can be cleared with a universal command.
The repeated authentication may come from a username and password saved in Windows Credential Manager, a mapped drive or open connection, an application that is still running with an old sign-in, or a Windows sign-in session that has already authenticated. These are different situations and need different solutions. A computer may also cache domain sign-in information so a user can log on when a domain controller is unavailable. That is not the same as a saved password for a particular file server.
Before changing anything, identify the target. Is the problem with one file share, a mapped drive, a remote server, or several applications? If only one server is involved, remove that server’s saved credential rather than clearing credentials for every service. If several users are affected, or the issue occurs across an organization, ask an IT administrator to check the server and domain configuration as well.
1. Remove the Saved Credential in Credential Manager
Credential Manager is the usual place to check when Windows repeatedly uses an outdated username or password for a network resource. Removing an entry here can prompt Windows to ask for credentials again the next time you connect. It does not change the password on the server or domain.
- Open the Start menu and search for Credential Manager.
- Select Windows Credentials. Check Generic Credentials too if the application or service may have stored a generic entry.
- Look for a credential that matches the server name, share, or application involved.
- Expand only the relevant entry, select Remove, and confirm.
- Reconnect to the resource and enter the correct account when prompted.
Credential entries may use a short server name, a fully qualified domain name, an IP address, or an application-specific label. For example, credentials saved for fileserver may not be the same entry as credentials saved for fileserver.example.com. Check the name you actually use when connecting. Removing an unrelated entry can sign you out of another service or cause a different application to ask for a password.
You can also list saved credentials from Command Prompt:
cmdkey /list
To remove a particular target, use the exact target name shown in the results:
cmdkey /delete:target-name
Replace target-name with the actual entry, without adding angle brackets. For example, if the listed target is LegacyGeneric:target=fileserver, use that target in the delete command. Review the list first; do not delete every entry unless you intend to remove all of those saved credentials. The command removes a stored credential, not an active Windows sign-in session.
2. Close Existing Network Connections
Windows may keep an authenticated connection open after you remove a saved credential. When that happens, the old connection can continue to work or prevent you from reconnecting with a different account. Close the connection before testing the new credentials.
In Command Prompt, list current connections with:
net use
To disconnect one mapped drive, use its drive letter. For example:
net use Z: /delete
For a connection that does not have a drive letter, specify the network path shown in the connection list, such as \\fileserver\share. You can also disconnect all network connections for your current user with:
net use * /delete
Use the last command carefully. It can disconnect mapped drives and other network connections, which may interrupt open files or work in progress. Close documents that are stored on network shares first. Once the old connection is closed, remove the matching saved credential if needed, then reconnect using the correct account.
If Windows reports that multiple connections to the same server using different usernames are not allowed, disconnect the existing connections to that server before trying another account. Be sure you are working in the same Windows user session that owns the connection; an elevated Command Prompt can show different connections from a normal Command Prompt.
3. Sign Out of the Application or Windows
Some programs keep authentication information in memory for as long as they remain open. Removing a Credential Manager entry will not necessarily make a running program forget the identity it already used. Close the application completely, including any background or system-tray process, and open it again. If it has its own account or sign-in settings, sign out there and then sign in with the correct account.
If the connection is tied to your Windows account, signing out of Windows and signing back in can establish a fresh user session. Save your work first, because signing out closes your applications. A restart can help when a service, background process, or existing connection continues to reuse old authentication information. Restarting is more disruptive than deleting one credential, so try the narrower steps first.
When testing, use the same server name and connection method each time. Switching between an IP address, short hostname, and fully qualified domain name can make Windows treat the destination as a different target. If the new prompt still appears to use an old account, check for another matching saved entry or an application-specific sign-in.
4. Know When Klist Is—and Is Not—the Right Tool
The command klist purge is often suggested as a way to clear a Windows authentication cache. It clears Kerberos tickets for the current logon session; it does not delete a saved password in Credential Manager and is not a general-purpose NTLM cache-clearing command. If you are specifically troubleshooting Kerberos tickets, you can run the following in a Command Prompt under the affected user account:
klist purge
Purging tickets can require applications to authenticate again, so save work and understand the impact before using it. If the connection is using NTLM, purging Kerberos tickets may not address the cause. A network administrator can help determine which authentication protocol is being used by checking the relevant Windows or server logs and the organization’s configuration.
Do not assume that every Windows network sign-in uses NTLM. Environments may use Kerberos, NTLM, or another authentication method depending on the service and how it is accessed. A command that affects one protocol may have no effect on another.
5. If You Mean Cached Domain Sign-In Information
Windows can store a verifier that allows a domain user to sign in to a computer when a domain controller cannot be reached. This supports offline sign-in; it is not a list of reusable plaintext passwords and is separate from credentials saved for a server or share. Clearing Credential Manager entries will not necessarily remove this offline sign-in data.
Changing the number of cached domain logons allowed by a computer does not provide a simple, targeted way to erase one user’s NTLM credentials. Registry edits intended to delete cached domain logon data can make troubleshooting harder or affect the ability to sign in. Do not manually remove security-related registry entries or attempt to edit protected system secrets. If you believe the problem concerns offline domain logon, contact your organization’s IT administrator. They can assess the device’s domain connection, policy, account status, and approved recovery process.
6. Check Whether the Server or Application Is Reusing Credentials
If removing the client-side credential does not help, the resource itself may be reusing a session or the application may store its own account information. Check the application’s sign-in screen and settings, then close and reopen it. For a server or service managed by your organization, ask the administrator whether there is an active session or a service configuration that needs attention. Do not restart a production server or change its authentication settings without authorization.
It can also help to test the resource from another approved device or user account. If only one Windows profile has the issue, a saved credential or application setting is more likely. If multiple users experience the same problem against the same service, the cause may be on the server, domain, or network side. Share the exact server name, error message, time of the attempt, and steps already tried with the support team.
How to Clear NTLM Cache Safely: A Quick Checklist
- Identify the exact server, share, or application that is using the wrong account.
- Check Credential Manager and remove only the matching saved entry.
- Run
net useand disconnect the affected mapped drive or connection. - Close the application, then reopen it and sign in with the intended account.
- Sign out of Windows or restart only if the old session continues to be reused.
- Use
klist purgeonly when troubleshooting Kerberos tickets, not as a general NTLM fix. - Ask IT for help with domain logon caching, server-side sessions, or organization-managed devices.
Conclusion
To clear what is commonly called an NTLM cache, first remove the saved credential for the specific resource in Credential Manager, then close any existing connection with net use. Restart the relevant application or sign-in session if it continues to reuse old authentication. These steps address the most common causes without changing system-wide security settings. Remember that klist purge clears Kerberos tickets, not saved NTLM credentials, and that offline domain sign-in data is a separate, administrator-managed feature. If the problem affects multiple users or requires domain or server changes, involve your IT team rather than editing protected Windows data.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.