Previous Topic: Input ParametersNext Topic: Output Parameters


PowerShell Execution Policy

To run PowerShell scripts, Windows imposes a security in terms of its execution policy. The Windows PowerShell execution policy determines whether scripts are allowed to run and, if they can run, whether they must be digitally signed. It also determines whether configuration files can be loaded.

The default execution policy of PowerShell on Windows is Restricted. To run a PowerShell script, change the execution policy to any one of the following:

CA Process Automation provides an option during the installation of the agent or Orchestrator to set the execution policy of the PowerShell script to Remote Signed (meaning downloaded scripts must be signed by a trusted publisher before they can execute). However, you always have an option to change the execution policy through command prompt using the following PowerShell command:

Set-ExecutionPolicy

...followed by the appropriate policy name. For example, this command sets the execution policy to AllSigned:

Set-ExecutionPolicy AllSigned