- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
08-18-2025 08:11 AM
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 ?
08-18-2025 08:30 AM
Hi,
Are you running PS as Administrator?
It is clearly failing on removing permissions from C:\Oracle
08-18-2025 10:19 PM
Hi @Airton Amaral .. Yes am running as Administrator only.
08-19-2025 03:01 AM
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.
08-19-2025 05:11 AM
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
08-19-2025 05:57 AM
Hi @Airton Amaral .. Already PSMShadowUsers group was there and I added to oracle folder with full permission. Still the same issue.
08-20-2025 06:13 PM
Hello @Subash Jesuraj
Please check if PSM Domain users are correctly configured in Hardening script.
08-20-2025 06:13 PM
Hello @Subash Jesuraj
Please check if PSM Domain users are correctly configured in Hardening script.
08-20-2025 06:24 PM
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 !
09-10-2025 11:51 AM
Please refer this too: Help Hardening the PSM Server
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!

