unable to execute commands using Powershell Script from PAM
search cancel

unable to execute commands using Powershell Script from PAM

book

Article ID: 217745

calendar_today

Updated On:

Products

CA Process Automation Base

Issue/Introduction

When trying to execute a PAM process that involves a Script Operator for a Powershell script the instance hangs until timeout.

The same code is working from PowerShell Explorer on the Server, but not from PAM Process.

Environment

Release : 4.3

Component : Process Automation

Resolution

This was caused by the Powershell Execution policy not being set appropriately on the server. The default execution policy of PowerShell on Windows is Restricted, and needs to be changed (either during the installation of the Orchestrator/Agent running the script) or afterwards.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/automic-process-automation/04-3-05/reference/operators-reference/operator-overview/command-execution-operators/powershell-execution-policy.html

If the issue remains, implement the following KB article in the Orchestrator server and agents:

PAM server not triggering Powershell script within a workflow process