PSM - PSMSR156E No Process was found for image [PSMInitSession.exe], session 5 (Codes: -1, -1) intermittently appears upon connection
Symptom
Intermittently, PSM sessions fail, and the following message appears:
Environment
9.10;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8 PSM all versions
Cause
During the initiation of the PSM session, the PSM Server attempts to find the PSMInitSession process which should be automatically executed when the session is established. If the PSM Server doesn’t find this process in the context of the terminal server session, it fails the entire session and disconnects the user. Most often, this is due to a low value set for the InitSessionTimeout parameter
Resolution
Increase the value of the InitSessionTimeout parameter:
1. Log into the PVWA as an administrator
2. Click on the wrench icon
3. Click on Administration
4. Click on Options
5. Browse to Privileged session management -> General -> Session settings -> Advanced settings
6. Find InitSessionTimeout and set the value to 30 (Default is 15). If this does not work, it can be increased to 90. The timeout settings are in seconds.
7. In the PSM Server, go to PSMInstallationPath\Components folder and edit [conf.xml]. Update the value to be the same as point 6. Take note that this will be in milliseconds instead. (If InitSessionTime=90, then in conf.xml should be 90000)
If this does not solve the problem, it may be because the PSMConnect user is not allowed to execute programs when opening TSE sessions. To change that :
1. Open the Microsoft Group Policy Object Editor.
2. Go to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services
3. Set the value to "Not configured" for parameters "Always show desktop on connection" and "Start a program on connection"
Additional Information
Details
SYMPTOM:From Time to Time the PSM server will not connect and will display the following message:
PSMSR156E No Process was found for image [PSMInitSession.exe], session 5 (Codes: -1, -1)
PROBLEM:
During the initiation of the PSM session, the PSM Server attempts to find the PSMInitSession process which should be automatically executed when the session is established. If the PSM Server doesn’t find this process in the context of the terminal server session it fails the entire session and disconnects the user.
There can be several reasons for this problem:
For some reason the PSMConnect user is not configured with PSMInitSession in the startup application. This is not likely if the problem happens from time to time and there are success connections.
It is more likely that the problem results from a low value set for the InitSessionTimeout parameter
SOLUTION:
Increase the value of the InitSessionTimeout parameter. This can
be done in the System tab-> PVWA -> Options, under the
‘Privileged Session Management’ node under Session Settings\Advanced
Settings.
Sample value can be 30 second.
If this does not solve the problem, it may be because the PSMConnect user is not allowed to execute program when opening TSE session. To change that :
- open the Microsoft Group Policy Object Editor
- Go to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services
- Set the value to "Not configured" for parameters "Always show desktop on connection" and "Start a program on connection"