mchk.exe fails with error (Error code 1784) at BCryptDecrypt()

Created:

2016-11-16 12:53:09 UTC

Modified:

2017-08-16 16:10:52 UTC

0

Was this article helpful?


Have more questions?

Submit a request

mchk.exe fails with error (Error code 1784) at BCryptDecrypt()

Applicable to:

  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows

Symptoms

The mchk.exe utility fails with the following error:

C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin>mchk.exe
The supplied user buffer is not valid for the requested operation. (Error code 1784) at BCryptDecrypt()

Cause

Improperly encrypted password for mailbox.

Resolution

  1. Enable debug log using the # 112125 article article

  2. Check Event Viewer and find a domain on which mchk.exe utility failed.

  3. Run the following command, replace <domainNameFoundAtStep2> with the domain name found on the step 2:

    "%plesk_bin%\\dbclient.exe" --direct-sql --sql="select * from accounts where id in (select account_id from mail where dom_id in (select id from domains where name like '%<domainNameFoundAtStep2>%'))"
  4. Update password in Plesk (preferable) or use this command (if it is not possible to update the password via Plesk GUI) replacing the <idFoundAt ThePreviousStep> with the account id found on the previous step:

    "%plesk_bin%\\dbclient.exe" --direct-sql --sql="update accounts set password='***' where id = <idFoundAt ThePreviousStep>"
Have more questions? Submit a request
Please sign in to leave a comment.