Execute Windows Script

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

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

  1. In the Workflow Editor Toolbox, choose Microsoft Windows > Execute Windows Script and drag and drop the activity onto the Workflow pane.

  2. On the Workflow Properties pane, enter the following information:

    1. Under General, specify the following information:

      1. Display Name: Enter the unique display name for the activity.

      2. Description: Enter the brief description about the activity.

      3. Activity Timeout (Seconds): Enter the number of seconds to wait for Execute Windows Script activity to fail because it timed out.

      4. Check the Continue Workflow Execution on Failure check box to continue the workflow execution on failure of the activity.

      5. Check the Skip Activity Execution check box to skip the activity.

    2. Under Target, specify the following information:

      1. Use Workflow Target: Check this radio button to use the workflow target.

      2. Override Workflow Target: Check this radio button to override the workflow target. You can select the appropriate target or +ADD NEW  from the dropdown list. For more information, see Microsoft Windows Endpoint.

      3. Use Workflow Target Group: Check this radio button to use the workflow target group.

      4. Override Workflow Target Group Criteria: Check this radio button to override the workflow target group criteria.

    3. Under Credentials, specify the following information:

      1. Use Target's Default Account Key: Check this radio button to use the target's default account key.

      2. Override Account Key: Check this radio button to override the workflow account key. You can select the appropriate Account key or +ADD NEW from the dropdown list. For more information, see Microsoft Windows Credentials.

    4. Under Windows, specify the following information or click Variable Reference icon to choose any variable:

      1. Windows Script: Enter the Windows command script to be executed on the specified target.

      2. Script Arguments: Enter the collection of argument values for the script. Multi-line script arguments are not supported.

      3. Working Directory: Enter the actual script code to use to execute an activity on the specified local working directory on the Windows target computer.

      4. Check the Execute Remote File check box to indicate that the script will access remote resources.

      5. Remote File: Enter the remote file path.

Back to: Microsoft Windows

  • No labels
Terms & Conditions Privacy Statement Cookies Trademarks