Execute Powershell Script

Use the Execute Powershell Script activity to specify a Powershell script and the target directory on which to execute.

Note: To ensure that this activity properly executes, verify that the Remote Registry service is enabled on your machine.

Usage

Complete the following properties to use this activity:

  • Windows - Specify the following information or click the Variable Reference icon to choose a variable:
    • Powershell Script - Enter the PowerShell script to be executed on the specified target.
    • Script Arguments - Click Add to enter argument values for the script. Multi-line script arguments are not supported.
    • Working Directory - Enter the path to the local working directory on the target where the script will be executed.
    • Execute Remote File - Check the check box if the script will access remote resources.
    • Remote File - Enter the remote file path.