UiPath Documentation
activities
latest
false
IT 自动化活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

运行 PowerShell 命令

“运行 PowerShell 命令”活动,该活动可对 EC2 实例运行 PowerShell 命令。

UiPath.AmazonWebServices.Activities.RunPowerShellCommand

描述

在 EC2 实例上运行 PowerShell 命令。

项目兼容性

Windows - 旧版 | Windows | 跨平台

配置

输入

  • 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.

输出

  • CommandOutput - Provides the results of the PowerShell command execution.
    备注:

    当目标 EC2 实例的状态设置为Running且 Amazon SSM 代理服务也在运行时,可以使用此活动。“命令”参数的值可以是一个或多个 PowerShell 命令,也可以是 EC2 实例上现有脚本的一个或多个路径。多个命令或路径应用分号 (“;”) 分隔。示例 1: "whoami; $r=""12"";echo $r"示例 2: "C:\Users\Administrator\Documents\ est1.ps1;C:\ est2.ps1"

  • 描述
  • 项目兼容性
  • 配置
  • 输入
  • 输出

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新