PSM Hardening Failed to Execute

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PSM Hardening Failed to Execute

L3 Networker

Hi All,

 

After 14.2 upgrade am trying to run PSMhardening.ps1 script in PSM. but its failing. With below,

 

SUCCESS: The file (or folder): "C:\Program Files (x86)\CyberArk\PSM\Components\x64" now owned by the administrators group.

12

processed file: C:\Program Files (x86)\CyberArk\PSM\Components\x64

Successfully processed 1 files; Failed processing 0 files

C:\oracle

processed dir: C:\oracle

C:\oracle

C:

Access is denied.

[CyberArk PSM Hardening script error]

Error message: PSMHRD004 Failed to remove permissions of folder/file. Path: C:\

Error history:

Message # 1: Group PSMSAMLUser was not found.

Message # 2: Group PSMSAMLUser was not found.

 

Here is the logs which I found,

 

081825 141929 [1200] Gives ownership to the administrators group on path [C:\Program Files (x86)\CyberArk\PSM\Components\x64]

081825 141929 [1200] Removing account *********\PSMShadowUsers from C:\oracle ACL

081825 141929 [1200] Start setting local drive access for drive [C:\]

081825 141929 [1200] Removing account**********\PSMShadowUsers from C:\ ACL

081825 141929 [1200] ERROR - Could not remove account ************\PSMShadowUsers from C:\ ACL

081825 141929 [1200] Error message: PSMHRD004 Failed to remove permissions of folder/file. Path: C:\

 

C Drive have same permission as prod. Full Permission for "Administrator" " CREATOR OWNER" "System" And Users group have Read& Exe, Create Files, Create Folder.

 

And here is the pop-up which i got when i run the Hardening Script,

 

and I choose "no"

 

PS C:\Program Files (x86)\CyberArk\PSM\Hardening> .\PSMHardening.ps1

Notice: In order to prevent unauthorized access to the PSM server, the local RemoteDesktopUsers group should contain ONLY the following users:

  1) Maintenance users who login remotely to the PSM server through Remote Desktop Services.

  2) Vault LDAP users who wish to connect to target systems through PSM directly from their desktop using an RDP client application such as MSTSC.

 

These are the current members of the local RemoteDesktopUsers group:

WinNT://CTLM/Domänen-Benutzer

WinNT://CTLM/CY-PSMAdmin

WinNT://CTLM/******1/PSMConnect

WinNT://CTLM/******/PSMAdminConnect

WinNT://CTLM/******/TestUser

WinNT://CTLM/svc-psmconnect

WinNT://CTLM/svc-psmadminconnect

Would you like to remove all members of this group? (yes/no): no

 

 

Can someone help me on this ?

10 REPLIES 10

L4 Transporter

Hi,

 

Are you running PS as Administrator?

It is clearly failing on removing permissions from C:\Oracle

Hi @Airton Amaral​ .. Yes am running as Administrator only.

Hi @NET LUX​ .. I gave full permission for PSMShadowusers group and Users group to C:\oracle.. Rebooted the server... But still same error while running Hardening script.

L4 Transporter

Check if you have PSMShadowUsers group created.

Note this is a group not an user, check for any typo when giving the group permissions on C:\Oracle

Hi @Airton Amaral​ .. Already PSMShadowUsers group was there and I added to oracle folder with full permission. Still the same issue.

L4 Transporter

Hello @Subash Jesuraj​ 

 

Please check if PSM Domain users are correctly configured in Hardening script.

L4 Transporter

Hello @Subash Jesuraj​ 

 

Please check if PSM Domain users are correctly configured in Hardening script.

L7 Applicator

Hi @Subash Jesuraj​ 

 

This ERROR - Could not remove account ************\PSMShadowUsers from C:\ ACL suggest hat the user running the script does not have the necessary permissions to modify the ACL at the root of the C:\ drive. Even though the Administrators group has full control, there might be other restrictions preventing it.

 

Are you running PowerShell script as Administrator?

 

Please check if any of the security policy applied via GPO explicitly denies modifications to the C:\ drive's root ACL.

 

Also please check the permissions on the C:\oracle folder.

 

Hope it helps !

L2 Linker

Please refer this too: Help Hardening the PSM Server

  • 331 Views
  • 10 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!