UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Activités d’automatisation informatique

Run Power Shell Command

UiPath.AmazonWebServices.Activities.RunPowerShellCommand

Description

Exécute une commande PowerShell sur une instance EC2.

Compatibilité du projet

Windows - Héritage | Windows | Multiplate-forme

Configuration

Entrée

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

Sortie

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

    Cette activité peut être utilisée lorsque l'état de l'instance EC2 cible est défini sur Running et que le service Amazon SSM Agent est également en cours d'exécution. La valeur du paramètre Commandes peut être soit une ou plusieurs commandes PowerShell, soit un ou plusieurs chemins vers des scripts existants sur l'instance EC2. Lorsque plusieurs commandes ou chemins sont indiqués, ils doivent être séparés par un point-virgule (;"). Exemple 1: "whoami; $r=""12"";echo $r" Exemple 2: "C:\Users\Administrator\Documents\ est1.ps1;C:\ est2.ps1"

  • Description
  • Compatibilité du projet
  • Configuration
  • Entrée
  • Sortie

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour