<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PSM Hardening Failed to Execute in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418548#M87266</link>
    <description>&lt;P&gt;Hello @Subash Jesuraj​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if PSM Domain users are correctly configured in Hardening script.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 01:13:18 GMT</pubDate>
    <dc:creator>R.Arora270927</dc:creator>
    <dc:date>2025-08-21T01:13:18Z</dc:date>
    <item>
      <title>PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418540#M87258</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After 14.2 upgrade am trying to run PSMhardening.ps1 script in PSM. but its failing. With below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUCCESS: The file (or folder): "C:\Program Files (x86)\CyberArk\PSM\Components\x64" now owned by the administrators group.&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;processed file: C:\Program Files (x86)\CyberArk\PSM\Components\x64&lt;/P&gt;&lt;P&gt;Successfully processed 1 files; Failed processing 0 files&lt;/P&gt;&lt;P&gt;C:\oracle&lt;/P&gt;&lt;P&gt;processed dir: C:\oracle&lt;/P&gt;&lt;P&gt;C:\oracle&lt;/P&gt;&lt;P&gt;C:&lt;/P&gt;&lt;P&gt;Access is denied.&lt;/P&gt;&lt;P&gt;[CyberArk PSM Hardening script error]&lt;/P&gt;&lt;P&gt;Error message:&amp;nbsp;PSMHRD004 Failed to remove permissions of folder/file. Path: C:\&lt;/P&gt;&lt;P&gt;Error history:&lt;/P&gt;&lt;P&gt;Message # 1:&amp;nbsp;Group PSMSAMLUser was not found.&lt;/P&gt;&lt;P&gt;Message # 2:&amp;nbsp;Group PSMSAMLUser was not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the logs which I found,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;Gives ownership to the administrators group on path [C:\Program Files (x86)\CyberArk\PSM\Components\x64]&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;Removing account *********\PSMShadowUsers from C:\oracle ACL&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;Start setting local drive access for drive [C:\]&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;Removing account**********\PSMShadowUsers from C:\ ACL&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;ERROR - Could not remove account ************\PSMShadowUsers from C:\ ACL&lt;/P&gt;&lt;P&gt;081825 141929 [1200]&amp;nbsp;Error message: PSMHRD004 Failed to remove permissions of folder/file. Path: C:\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C Drive have same permission as prod. Full Permission for "Administrator" " CREATOR OWNER" "System" And Users group have Read&amp;amp; Exe, Create Files, Create Folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the pop-up which i got when i run the Hardening Script,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I choose "no"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Program Files (x86)\CyberArk\PSM\Hardening&amp;gt; .\PSMHardening.ps1&lt;/P&gt;&lt;P&gt;Notice: In order to prevent unauthorized access to the PSM server, the local RemoteDesktopUsers group should contain ONLY the following users:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;1) Maintenance users who login remotely to the PSM server through Remote Desktop Services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the current members of the local RemoteDesktopUsers group:&lt;/P&gt;&lt;P&gt;WinNT://CTLM/Domänen-Benutzer&lt;/P&gt;&lt;P&gt;WinNT://CTLM/CY-PSMAdmin&lt;/P&gt;&lt;P&gt;WinNT://CTLM/******1/PSMConnect&lt;/P&gt;&lt;P&gt;WinNT://CTLM/******/PSMAdminConnect&lt;/P&gt;&lt;P&gt;WinNT://CTLM/******/TestUser&lt;/P&gt;&lt;P&gt;WinNT://CTLM/svc-psmconnect&lt;/P&gt;&lt;P&gt;WinNT://CTLM/svc-psmadminconnect&lt;/P&gt;&lt;P&gt;Would you like to remove all members of this group? (yes/no): no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me on this ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 15:11:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418540#M87258</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2025-08-18T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418541#M87259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you running PS as Administrator?&lt;/P&gt;&lt;P&gt;It is clearly failing on removing permissions from C:\Oracle&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 15:30:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418541#M87259</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-08-18T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418542#M87260</link>
      <description>&lt;P&gt;Hi @Airton Amaral​&amp;nbsp;.. Yes am running as Administrator only.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 05:19:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418542#M87260</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2025-08-19T05:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418543#M87261</link>
      <description>&lt;P&gt;Check these articles - &lt;A alt="https://community.cyberark.com/s/article/PSM-Hardening-Failure-Error-PSMHRD004-Failed-to-remove-permissions-of-folder-file-Path-C-oracle" href="https://community.cyberark.com/s/article/PSM-Hardening-Failure-Error-PSMHRD004-Failed-to-remove-permissions-of-folder-file-Path-C-oracle" target="_blank"&gt;PSM Hardening Failure Error PSMHRD004 Failed to remove permissions of folder/file. Path: C:\oracle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://community.cyberark.com/s/question/0D52J00007OHPYUSA5/error-message-psmhrd004-failed-to-remove-permissions-of-folderfile-path-c" href="https://community.cyberark.com/s/question/0D52J00007OHPYUSA5/error-message-psmhrd004-failed-to-remove-permissions-of-folderfile-path-c" target="_blank"&gt;Error message: PSMHRD004 Failed to remove permissions of folder/file. Path: C:\&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://community.cyberark.com/s/feed/0D52J00007Au48sSAB" href="https://community.cyberark.com/s/feed/0D52J00007Au48sSAB" target="_blank"&gt;Feed Detail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 05:48:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418543#M87261</guid>
      <dc:creator>NET_LUX</dc:creator>
      <dc:date>2025-08-19T05:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418544#M87262</link>
      <description>&lt;P&gt;Hi @NET LUX​&amp;nbsp;.. I gave full permission for PSMShadowusers group and Users group to C:\oracle.. Rebooted the server... But still same error while running Hardening script.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 10:01:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418544#M87262</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2025-08-19T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418545#M87263</link>
      <description>&lt;P&gt;Check if you have PSMShadowUsers group created.&lt;/P&gt;&lt;P&gt;Note this is a group not an user, check for any typo when giving the group permissions on C:\Oracle&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:11:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418545#M87263</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-08-19T12:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418546#M87264</link>
      <description>&lt;P&gt;Hi @Airton Amaral​&amp;nbsp;.. Already PSMShadowUsers&amp;nbsp;group was there and I added to oracle folder with full permission. Still the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:57:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418546#M87264</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2025-08-19T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418547#M87265</link>
      <description>&lt;P&gt;Hello @Subash Jesuraj​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if PSM Domain users are correctly configured in Hardening script.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 01:13:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418547#M87265</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-08-21T01:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418548#M87266</link>
      <description>&lt;P&gt;Hello @Subash Jesuraj​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if PSM Domain users are correctly configured in Hardening script.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 01:13:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418548#M87266</guid>
      <dc:creator>R.Arora270927</dc:creator>
      <dc:date>2025-08-21T01:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418549#M87267</link>
      <description>&lt;P&gt;Hi @Subash Jesuraj​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you running PowerShell script as Administrator? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if any of the security policy applied via GPO explicitly denies modifications to the C:\ drive's root ACL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also please check the permissions on the C:\oracle folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 01:24:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418549#M87267</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-08-21T01:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: PSM Hardening Failed to Execute</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418550#M87268</link>
      <description>&lt;P&gt;Please refer this too: &lt;A alt="https://community.cyberark.com/s/question/0D5Ht0000AIfzq3KQB/help-hardening-the-psm-server" href="https://community.cyberark.com/s/question/0D5Ht0000AIfzq3KQB/help-hardening-the-psm-server" target="_blank"&gt;Help Hardening the PSM Server&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:51:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-hardening-failed-to-execute/m-p/1418550#M87268</guid>
      <dc:creator>Celebration</dc:creator>
      <dc:date>2025-09-10T18:51:10Z</dc:date>
    </item>
  </channel>
</rss>

