Updated on 2026-01-21 GMT+08:00

Running PowerShell Commands

This action aims to run the PowerShell command entered in the text box on the Windows host.

Configuring Deployment Actions

  1. Create an application by referring to Creating an Application.
  2. On the Deployment Actions page, add this deployment action based on the service scenario.
  3. Configure the action using the parameters described in the table below.

    Table 1 Parameters

    Parameter

    Description

    Action Name

    Custom action name. Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

    Environment

    Deployment object. Select an environment whose resource type is host cluster.

    PowerShell Commands

    Specifies the command to be executed.

    NOTE:

    If the PowerShell command to be executed contains more than 10240 characters, you are advised to run the PowerShell script extension.

    Action Control

    Whether to enable the settings.

    • Keep running on failure: Continue the task even if this action fails.

Helpful Links

If you encounter any problem during deployment, see Running PowerShell Commands.