Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 22 Next »

Activities

PS Script

This activity runs a powershell script.

Activity Parameters

The PS Script activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

  • Script Code (text box editor type) (type: string): the Powershell script code to be executed. For example: "mkdir 'C:\FlowsterSolutions'" (this command creates a folder with the specified path).
  • Script File (text box editor type) (type: string): the Powershell script file. This parameter takes precedence over the "Script Code" parameter.

As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the PS Script activity:

The Read Only Output variable are the possible output values that the activity will provide:

  • Output (type: collection<PSObjects>): outputs a collection of "PSObjects" type objects..
  • Output Rows (type: int32): outputs the number of "PSObjects" type objects returned by the execution of the script.
 

 

 

Powershell Demo sequence:

 

On Execution (Home->(Execution section) Start button) -  task "Powershell_Demo"  , Tracking Data panel should display:

  • No labels