"Logon failure: unknown user name or bad password" error when using IndeedCM.CertEnroll.MsCA.exe utility
Posted by Nikolay Lazitskiy, Last modified by Mikhail Yakovlev on 22 February 2019 04:30 PM

The following error occurs even though the username and password are specified correctly for the service account:

Logon failure: unknown user name or bad password


The user name or password is incorrect

Sometimes no error message appears but no activity is found after execution of the command.

Make sure that credentials for the service account are specified correctly. You might also login to any workstation within the domain to verify whether the account is blocked. If this is not the case and credentials are specified correctly, then, most probably, the password contains characters that require special handling within the command line. Such characters are quotation marks ("), for example.

The figure below shows the result of IndeedCM.CertEnroll.MsCA.exe execution with password of service account containing double quotation marks that cause the error.
In this case, the content of the password must be enclosed in quotation marks, and instead of one double quotation mark, use two consecutive words: instead of "pass"word1" enter "pass""word1".
The password specified in this form is processed correctly.

If you need to specify a password containing double quotes in the Indeed CM configuration file (.config), the symbol must be replaced with a group of characters " and the content part should be quoted.
For example: instead of "pass"word" specify "pass"word"

(0 vote(s))
Not helpful