PSM - "PSMSC036E No Process was found for image [PSMInitSession.exe]" only when using RemoteApp
415
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:52 PM
Symptom
When initiating a PSM connection using RemoteApp, you receive the following error:
PSMSC036E No Process was found for image [PSMInitSession.exe], session 4 (Codes: -1, -1)
Without using RemoteApp, the PSM connection completes successfully. When using ProcMon to troubleshoot, you will also see a "PATH NOT FOUND" error while launching PSMInitSession.exe and the path for PSMInitSession is incorrect.
Environment
9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2 Component: PSM Functional Area: Installation & Initial Setup
Cause
During initial setup of RemoteApp, the registry may have been setup to point to an incorrect path for PSMInitSession. The error is most common in new installs of PSM with a non-default installation path.
On Server 2016 and above, if you are attempting to test connectivity after clearing the AppLocker rules, there may be a requirement that AppLocker have a minimal set of local Applocker rules defined; Otherwise the PSM may use the default Applocker rules set by Default Domain Policy.
If this happens, PSMConnect will not be able to execute PSMInitiSession.exe at logon.
Resolution
Change the following REG_DWORD values in the PSM's registry to the correct path for PSMInitSession.exe (no restart needed):
- HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\PSMInitSession\Path
- HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\PSMInitSession\ShortPath
Run 'secpol.msc'
- Expand "Application Control Polices"
- Expand "Applocker"
- Expand "Script Rules"
- Right-Click "Script Rules"
- Select "Create Default Rules"
- Expand "Packaged app Rules"
- Right-Click "Packaged app Rules"
- Select "Create Default Rules"
- Close secpol.msc
You may also need to Reboot the PSM server to apply the changes.