UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Atividades de Automação de TI

Última atualização 20 de mai de 2026

Run Power Shell Command

UiPath.AmazonWebServices.Activities.RunPowerShellCommand

Description

Executa um comando do PowerShell em uma instância do EC2.

Compatibilidade do projeto

Windows - Legada | Windows | Multiplataforma

Configuração

Entrada

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

Saída

  • CommandOutput - Provides the results of the PowerShell command execution.
    Observação:

    Essa atividade pode ser usada quando o estado da instância do EC2 de destino é definido como Running e o serviço do agente do Amazon SSM também está em execução. O valor do parâmetro Comandos pode ser um ou mais comandos do PowerShell ou um ou mais caminhos para scripts existentes na instância EC2. Vários comandos ou caminhos devem ser separados por ponto e vírgula (";"). Exemplo 1: "whoami; $r=""12"";echo $r" Exemplo 2: "C:\Users\Administrator\Documents\ est1.ps1;C:\ est2.ps1"

  • Description
  • Compatibilidade do projeto
  • Configuração
  • Entrada
  • Saída

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades