PSM - PSMKL165E Failed to execute the Keystroke Logger hook 'SetCapturingState' function. Error: 30 (Codes: -1, -1)
103
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:58 PM
Symptom
PSM Connection Component failed.
The following errors are found on the KeystrokesLogger log. There are no dispatcher logs, as dispatcher failed to start:
PSMKL003I PSM Keystrokes Logger exception occurred.
Reason: PSMKL165E Failed to execute the Keystroke Logger hook 'SetCapturingState' function. Error: 30 (Codes: -1, -1)
PSMKL166E Failed to process the PSM Server request.Request PSMKL165E Failed to execute the Keystroke Logger hook 'SetCapturingState' function. Error: 30. Diagnostic information: -1, -1. Session is aborting.
Environment
10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;14.6
Cause
Keystrokes failed to start, session aborted without launching dispatcher.
Resolution
Check out the Windows Application Events Logs.
There will be a entry on what has failed.
For example in this test scenario:
PSMKS032E Failed to load the Keystroke Logger executable path. Error: [PSMKS031E Failed to Read the registry key path 'SOFTWARE\Wow6432Node\CyberArk\Idira Privileged Session Manager'. Diagnostic information: 2, 2]
The path is not valid, and the Keystrokes logger failed to load, resulting in session failure.
In this scenario, to fix the issue:
- Re-create the key: HKLM\SOFTWARE\Wow6432Node\CyberArk\Idira Privileged Session Manager
- Add String
- Name as 'HomeDirectory'
- Edit value to the installation folder of PSM, eg: "C:\Program Files (x86)\CyberArk\PSM"
To reproduce, delete this key.
Note:
There may be other factors causing the same error message in PSM. Do check out the Windows Events Application logs to know what is failing exactly.