UAC - Powershell

Universal Task to Run Powershell Scripts


Universal Task Details Fields

Powershell Script Location = UC Script Library

This option executes a powershell script from the Universal Controller Script Library. Scripts to be executed from this task must be Script Type = Data and the Script Name must end in .ps1.  

Field Label

Description

Example

Powershell Script

Select the required Powershell Script fro the Universal Controller Script Library.


Powershell Script Options

Specify any required options and their values to be passed to the Powershell Script.

Note: 

  • Powershell Script options should be prefixed with a "-".
  • It may be required to quote any values that contain spaces or special charaters.


Powershell Script Location = Server Disk

This option executes a Powershell Script from the Agent server's files system. 

Field Label

Description

Example

Powershell Script

Specify the script on the Agent server's files system. 

Note:

You can optionally use the Run Time Directory field to specify the script's location or use a fully qualified path/name in this field. 

C:\scripts\myscript.ps1

Powershell Script Options

Specify any required options and their values to be passed to the Powershell Script.

Note: 

  • Powershell Script options should be prefixed with a "-".
  • It may be required to quote any values that contain spaces or special charaters.