UiPath Documentation
activities
latest
false
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Actividades de automatización de TI

Última actualización 18 de may. de 2026

Ejecutar comando de PowerShell

UiPath.AmazonWebServices.Activities.RunPowerShellCommand

Descripción

Ejecuta un comando de PowerShell en una instancia EC2.

Compatibilidad de proyectos

Windows - Heredado | Windows | Multiplataforma

Configuración

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.

Salida

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

    Esta actividad se puede utilizar cuando el estado de la instancia EC2 de destino se establece como Running y el servicio del agente de Amazon SSM también se está ejecutando. El valor del parámetro Comandos puede ser uno o más comandos PowerShell o una o más rutas a scripts existentes en la instancia EC2. Los comandos o rutas múltiples deben estar separados por punto y coma (";"). Ejemplo 1: "whoami; $r=""12"";echo $r" Ejemplo 2: "C:\Users\Administrator\Documents\ est1.ps1;C:\ est2.ps1"

  • Descripción
  • Compatibilidad de proyectos
  • Configuración
  • Entrada
  • Salida

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado