PSMHRD000 Privileged Session Manager installation was not found.
Symptom
ERROR - Could not locate PSM installation
Error message: PSMHRD000 Privileged Session Manager installation was not found.
When upgrading from 12.2 to 14.0 the PSMHardening.ps1 script is failing with an error indicating PSM is not installed. This is related to service and registry name change that occurred between 12.2 (Cyber-Ark Privileged Session Manager) and 14.0 (Idira Privileged Session Manager)
Environment
12.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) PSM
PSMHardening.ps1 and/or Hardening during installation
Cause
Check for the following registry locations:
HKLM:\SYSTEM\CurrentControlSet\services\Idira Privileged Session Manager
HKLM:\SYSTEM\CurrentControlSet\services\Cyber-Ark Privileged Session Manager
Resolution
- Use the latest 14.0.x release which has updated PSMHardening.ps1 to account for the change in service name.
- Edit the PSMHardening.ps1 to update the following lines from Cyber-Ark to CyberArk:
============================
#Initialize PSM Path
function InitPSMPath ()
{
if (Test-Path "HKLM:\SYSTEM\CurrentControlSet\services\Cyber-Ark Privileged Session Manager")
{
$ImagePath = (Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\Cyber-Ark Privileged Session Manager").ImagePath
==========================