How to run Powershell scripts in CA Workload Automation DE?
search cancel

How to run Powershell scripts in CA Workload Automation DE?

book

Article ID: 10733

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

The Powershell scripts can be easily executed from CA Workload Automation DE (dSeries).  Before running the scripts, it is necessary to make sure the user or system has been granted adequate permission(s).  E.g.

set -executionpolicy -executionpolicy unrestricted

 



Environment

Release: DSWAHA01300-12-Workload Automation DE-High Availability
Component:

Resolution

To run the Powershell script, set up the Windows job in DE (see image).  Define the Powershell.exe path in the 'Command to run' field.

Next, define the script in the 'Arguments to pass' field.  You may also need to define the user that will execute the script in 'User ID'.

Additional Information

Note:  If the job is failing due to script errors, then please make sure the user has proper permission to execute the script.  It is always recommended to test running the script manually in Powershell.

Attachments

1558702060953000010733_sktwi1f5rjvs16pps.jpeg get_app