Windows Credential Manager Fails to Store Credentials for a Particular Application

Chon Yut 40 Reputation points
2026-11-25T06:34:46.1466667+00:00

Hi guys,

I'm trying to save my login credentials for an internal application, but Windows Credential Manager keeps reporting that the credentials cannot be stored. I can save credentials for other applications without any issues.

How can I determine whether this problem is related to the target name format, credential type restrictions, or security policies applied to this particular application?

Tqsm!

Windows for business | Windows Server | Directory services | Other
0 comments No comments

Answer accepted by question author
Jason Nguyen Tran 31,625 Reputation points Independent Advisor
2026-11-25T07:26:14.3466667+00:00

Hi Chon Yut,

Since saving works for your other applications, Credential Manager itself is fine, and the cause is something specific to how this app saves its credentials. A quick first test is to save the same entry manually from an elevated Command Prompt with cmdkey /generic:<target name> /user:<username> /pass (it will prompt for the password), and then try cmdkey /add:<target name> /user:<username> /pass, which stores it as a Windows/domain credential instead. If the generic entry saves but the domain one fails, a security policy is almost certainly the cause. The most common one I see is "Network access: Do not allow storage of passwords and credentials for network authentication" (registry value disabledomaincreds under HKLM\SYSTEM\CurrentControlSet\Control\Lsa), which blocks domain-type credentials while generic ones still work. You can check whether it applies to your machine by running gpresult /h report.html or opening Local Security Policy under Security Options.

If both cmdkey commands work, look at the target name the app uses: very long names, unusual characters, or a URL format the app doesn't expect can make the save fail, and the password data itself is limited to 2,560 bytes. It also really helps to get the exact error code from the app or its logs. For example, error 1312 (ERROR_NO_SUCH_LOGON_SESSION) usually means the app is running as a service or a scheduled task without a full user profile loaded, so it has no credential vault to write to. If you can share the error code and how the app is launched, I'm happy to help you narrow it down further.

I hope the response provided some helpful insight. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.

Jason

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.