Workaround for launching PSMInitSession using Policy

Workaround for launching PSMInitSession using Policy

215
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:06 PM


Symptom


In certain environments, RDS is not able to read/launch "Environment" tab of the accounts.

Even though RDS installation with out Pre-reqs script is successful with no errors at all.

 

PSM accounts will load straight into Desktop when attempted connection.



Environment


12.0;12.1;12.2;12.6;14.6 Privileged Access Manager (PAM, self-hosted) PSM PSM PSM Connection via PVWA

Cause


Environmental issues



Resolution


A: Domain Group Policy (Recommended for Enterprise)

This section covers the architectural best practices and the steps for managing PSM policies at the domain level using Active Directory.

1. Implementation Best Practice: Dedicated PSM OU

  • Deployment: For domain-joined PSM servers, it is a recommended best practice to deploy each server type into its own respective Organizational Unit (OU) (e.g., a dedicated PSM OU).
  • Inheritance: You must Disable GPO Inheritance on the PSM OU during the initial software installation process. This prevents existing corporate policies from interfering with the Remote Desktop Services (RDS) role installation or hardening scripts.
  • Isolation: Moving PSM servers and their service accounts (PSMConnect and PSMAdminConnect) to a specific OU allows you to apply CyberArk-specific hardening and session policies without impacting the rest of the domain.

2. Configuring the Domain GPO

  1. Launch GPMC: Open the Group Policy Management Console (gpmc.msc) on a Domain Controller or Management Station.
  2. Create/Edit GPO: Right-click your dedicated PSM OU and select Create a GPO in this domain, and Link it here.... Name it Idira PSM Session Policy.
  3. Navigate to Session Settings:
    • Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment
  4. Configure "Start a program on connection":
    • Set to Enabled.
    • Program path: C:\Program Files (x86)\CyberArk\PSM\Components\PSMInitSession.exe
    • Working directory: C:\Program Files (x86)\CyberArk\PSM\Components
  5. User Rights Assignment (Critical):
    • Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
    • Ensure the domain accounts for PSMConnect and PSMAdminConnect are added to Allow log on through Remote Desktop Services.

B: Local Group Policy (Standalone/Workaround)

Use these steps to apply policies locally on a PSM server, typically used as a temporary workaround or for servers not managed by a Domain GPO.

1. Update Policy for Specific Users (MMC Snap-in)

Use this method to target only the individual PSMConnect and PSMAdminConnect accounts locally.

  1. Launch MMC: Run mmc.exe as Administrator.
  2. Add Snap-in: Go to File > Add/Remove Snap-in, select Group Policy Object Editor, and click Add.
  3. Browse for Users: In the Group Policy Wizard, hit Browse, go to the Users tab, and select PSMConnect. Click Finish and then OK.
  4. Apply Settings: Navigate to the "Start a program on connection" policy (path below) and configure the PSMInitSession.exe details.
  5. Repeat: Perform the same steps for the PSMAdminConnect user.

2. Configuring Policy for Local Non-Administrators

This is the most efficient local method to cover all standard PSM users at once.

  1. Launch MMC: Click Start, type mmc, and select Run as administrator.
  2. Add Snap-in: File > Add/Remove Snap-in > Group Policy Object Editor > Add.
  3. Select the "Non-Administrators" Group:
    • In the wizard, click Browse... and switch to the Users tab.
    • Select Non-Administrators and click OK > Finish > OK.
  4. Configure the PSM Startup Program:
    • Navigate to: User Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment
    • Double-click Start a program on connection and set to Enabled.
    • Program path: C:\Program Files (x86)\CyberArk\PSM\Components\PSMInitSession.exe
    • Working directory: C:\Program Files (x86)\CyberArk\PSM\Components
  5. Finalize: Open an elevated Command Prompt and run gpupdate /force.
    • Test: Log in as a non-admin to verify the program launches. Log in as an Administrator to ensure the desktop loads normally.

C: Domain Group Policy (User Configuration & Loopback)

This section covers managing Idira PSM policies at the domain level under User Configuration. This approach is ideal when targeting domain user accounts (PSMConnect and PSMAdminConnect) directly via a dedicated User OU, or when using Loopback Processing on a dedicated PSM Computer OU.

1. Implementation Strategy

  • User OU Linking: Use this if your domain PSM accounts (PSMConnect and PSMAdminConnect) are located in a dedicated Users OU. Linking the policy here applies settings directly to the accounts regardless of which PSM server they log into.

  • Loopback Processing (Recommended for Computer OUs): If your GPO is linked to a PSM Computer OU, you must enable Group Policy Loopback Processing. This forces the domain to apply the GPO's User Configuration settings to any user logging into the PSM server.

2. Configuring the Domain GPO (User Level)

  1. Launch GPMC: Open the Group Policy Management Console (gpmc.msc) on a Domain Controller or Management Station.

  2. Create/Edit GPO: Right-click the targeted OU (User OU or PSM Computer OU) and select Create a GPO in this domain, and Link it here.... Name it Idira PSM User Session Policy.

  3. Navigate to User Session Settings:

    • Go to: User Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment

  4. Configure "Start a program on connection":

    • Set policy to Enabled.

    • Program path: C:\Program Files (x86)\CyberArk\PSM\Components\PSMInitSession.exe

    • Working directory: C:\Program Files (x86)\CyberArk\PSM\Components

  5. Configure Loopback Processing (Required if linked to PSM Computer OU):

    • Navigate to: Computer Configuration > Policies > Administrative Templates > System > Group Policy

    • Double-click Configure user Group Policy Loopback Processing mode.

    • Set to Enabled.

    • Set Mode to Replace (to overwrite existing user policies) or Merge (to combine with existing user policies).

  6. Finalize & Enforce:

    • Run gpupdate /force on the target PSM server.

    • Verify the settings applied correctly using gpresult /h C:\gpreport.html.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001LX7CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail