Automic Windows jobs using PowerShell commands fail when the server environment enforces an ExecutionPolicy of AllSigned. This occurs because the Automation Engine generates temporary .ps1 files that are not digitally signed before execution. Users seeking to track the progress of the Request for Enhancement (RFE) for native script signing should reference the details below.
The Automic Agent processes PowerShell commands by creating a temporary .ps1 file on the agent machine. When the Windows ExecutionPolicy is set to AllSigned, the operating system prevents the execution of these temporary files because they lack a valid digital signature. Currently, the Automic Agent does not have a native mechanism to sign these dynamically generated scripts before execution.
To allow jobs to execute PowerShell commands, configure the agent to bypass the execution policy for its own processes:
.ini).ecpexe parameter in the [VARIABLES] section: ecpexe=powershell.exe -NonInteractive -ExecutionPolicy Bypass -NoLogo -file
Tracking RFE DE188970: A feature enhancement requested to dynamically sign temporary scripts and demand for this feature is being evaluated (DE188970).
For further assistance, see . Scroll to the bottom of the page and click on your respective region.