activities
latest
false
UiPath logo, featuring letters U and I in white
IT Automation Activities
Last updated Nov 15, 2024

Run Power Shell Command

UiPath.AmazonWebServices.Activities.RunPowerShellCommand

Description

Runs a PowerShell command on an EC2 instance.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Configuration

Input
  • Instance - Specifies the instance on which the operation needs to be performed.
  • Commands - Specifies the commands that need to be run or the paths to the existing scripts on the instance. This field supports only strings and String variables.
  • WorkingDirectory - Specifies the path to the working directory on the instance. This field supports only strings and String variables.
  • Comment - Provides a comment about the command. This field supports only strings and String variables.
  • Timeout - Specifies how long to wait for the activity to run before an error is thrown. If a value is not set, then the activity runs until completed.
Output
  • CommandOutput - Provides the results of the PowerShell command execution.

    Note:
    This activity can be used when the state of the target EC2 instance is set as Running and the Amazon SSM Agent service is also running.

    The value of Commands parameter can be either one or more PowerShell commands or one or more paths to existing scripts on the EC2 Instance. Multiple commands or paths should be separated by a semicolon (";").

    Example 1: "whoami; $r=""12"";echo $r"
    Example 2: "C:\Users\Administrator\Documents\ est1.ps1;C:\ est2.ps1"
  • Description
  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.