I need to execute a PowerShell script in Bamboo. Below are the steps I did:
Note : the build agent is a windows machine
The task failing with error -
Failing task since return code of [powershell -NonInteractive -ExecutionPolicy bypass -Command d:\bambooagent\temp\MER-BPMUI-JOB1-33-ScriptBuildTask-7361736628996142855.ps1] was -1 while expected 0
The PowerShell Execution policy of the build agent machine is
Scope ExecutionPolicy
----- ---------------
MachinePolicy Restricted
UserPolicy Restricted
Process Undefined
CurrentUser Unrestricted
LocalMachine Unrestricted
I am blocked in this step. Looking for urgent assistance on this. What needs to be done?