"The initial program cannot be started: PSM@<session ID>" error when attempting PSM connections
274
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:09 PM
Symptom
Users may receive the following error when connecting via Privileged Session Management (PSM):
The system cannot find the file specified.
The initial program cannot be started:
PSM@<session ID>
This may occur for every connection, or intermittently, depending on the environment.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM This may occur in environments where:
- PSM servers are joined to a domain
- PSM has been configured to use domain-based PSMConnect and PSMAdminConnect users
Cause
This is commonly caused by the following combination of settings:
- Some Domain Controllers have the "Network Access: Restrict clients allowed to make remote calls to SAM" policy set to only allow Administrators
- The PSM servers have the following Registry setting set:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\IgnoreRegUserConfigErrors = 1
- When PSM attempts to retrieve the user information (including Initial Program) from a domain controller which only allows Administrators, the request is denied.
- Remote Desktop Services does not fail at this point, since IgnoreRegUserConfigErrors is enabled. Instead, it loads the server default settings instead, which does not include the Initial Program, and as a result, does not start PSMInitSession
Resolution
To confirm the cause:
To resolve:
- Check the "Network Access: Restrict clients allowed to make remote calls to SAM" policy on each domain controller which the PSM servers may be communicating with.
- Adjust the policy to allow the PSM servers and/or the domain-based PSMConnect and PSMAdminConnect users
- https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-access-restrict-clients-allowed-to-make-remote-sam-calls