<?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>article EPM - Script Distribution Policy appending additional command when executing Powershell scripts in Endpoint Privilege Manager (EPM) Articles</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-script-distribution-policy-appending-additional-command-when/ta-p/1428004</link>
    <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;When the user attempts to execute a .ps1 on Script Distribution Policy.&lt;/SPAN&gt;&lt;BR /&gt;EPM will execute the "powershell.exe" while appending the following command to run the script:&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;-Command if((Get-ExecutionPolicy ) -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass -Force};&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Why did EPM Agent execute the script with the above command?&lt;/P&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;P&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;When the machine's Script Execution policy is set to "AllSigned", PowerShell requires that all scripts (including those deployed by EPM) must be digitally signed by a trusted publisher.&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;Next, when "AllSigned" is enforced as the script execution policy, PowerShell blocks any unsigned scripts from running — even if its triggered by EPM&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;EPM’s Script Distribution Policies are designed to work under standard execution policies (e.g., "Bypass", "RemoteSigned", etc.), which is why EPM is appending the command when executing .ps1 script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 03:47:17 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-05-09T03:47:17Z</dc:date>
    <item>
      <title>EPM - Script Distribution Policy appending additional command when executing Powershell scripts</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-script-distribution-policy-appending-additional-command-when/ta-p/1428004</link>
      <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;When the user attempts to execute a .ps1 on Script Distribution Policy.&lt;/SPAN&gt;&lt;BR /&gt;EPM will execute the "powershell.exe" while appending the following command to run the script:&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;-Command if((Get-ExecutionPolicy ) -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass -Force};&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Why did EPM Agent execute the script with the above command?&lt;/P&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;P&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;When the machine's Script Execution policy is set to "AllSigned", PowerShell requires that all scripts (including those deployed by EPM) must be digitally signed by a trusted publisher.&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;Next, when "AllSigned" is enforced as the script execution policy, PowerShell blocks any unsigned scripts from running — even if its triggered by EPM&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #181818;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size: 13px;text-align: left;white-space: pre-line;background-color: #ffffff;float: none;display: inline;"&gt;EPM’s Script Distribution Policies are designed to work under standard execution policies (e.g., "Bypass", "RemoteSigned", etc.), which is why EPM is appending the command when executing .ps1 script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 03:47:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-script-distribution-policy-appending-additional-command-when/ta-p/1428004</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-05-09T03:47:17Z</dc:date>
    </item>
  </channel>
</rss>

