All Products
Search
Document Center

Elastic Desktop Service:Send remote commands

Last Updated:Mar 20, 2025

The remote command feature enables efficient O&M operations on cloud computers without needing to connect through Alibaba Cloud Workspace terminals. You can send commands to one or more cloud computers simultaneously, including cloud computer shares. This topic describes how to use the remote command feature.

Background information

To use the remote command feature, you must activate Cloud Assistant, a native O&M tool developed by Alibaba Cloud. It allows you to remotely execute Batch, PowerShell, and Shell commands for automating script execution and software management on cloud computers, without needing to connect to the computers directly.

Important

By default, the Cloud Assistant agent is pre-installed and running on cloud computers. To avoid service interruptions, we recommend that you keep the agent active. On Windows cloud computers, it operates as the "Aliyun Assist Service" process while on Linux systems, it operates as the "aliyun" process.

Prerequisites

The cloud computers to which you want to send remote commands are in the Running state.

Send remote commands to a single cloud computer

  1. Log on to the EDS Enterprise console.

  2. In the left-side navigation pane, choose Resources > Cloud Computers.

  3. In the upper-left corner of the top navigation bar, select a region.

  4. On the Cloud Computers page, find the cloud computer to which you want to send a remote command and use one of the following methods to send the command:

    • Click the ⋮ icon in the Actions column and select Send Remote Commands.

    • Click the ID of the cloud computer. On the page that appears, click the Command Execution Details tab and then the Send Remote Commands button.

  5. Configure the following parameters in the Send Remote Commands dialog box and click Execute.

    Parameter

    Description

    Command Type

    • Windows cloud computers: Set the parameter to PowerShell or Bat.

    • Linux cloud computers: Set the parameter to Shell.

    Command Content

    Enter a command based on your business requirements.

    Note

    The command must return a result with each execution. Interactions with the command output are not supported.

    After executing a command, you can enter another command in the Command Content text box to run it.

Send remote commands to multiple cloud computers

  1. Log on to the EDS Enterprise console.

  2. Choose one of the following console pages to proceed:

    Cloud Computers page

    1. In the left-side navigation pane, choose Resources > Cloud Computers.

    2. On the Cloud Computers page, click Send Remote Commands in the upper-left part of the page.

    Remote Commands page

    1. In the left-side navigation pane, choose Operation & Maintenance > Remote Commands.

    2. Remote Commands page, click Batch Send Remote Commands.

  3. On the Batch Send page, configure the following parameters based on your business requirements and click Confirm Send.

    Parameter

    Description

    Command Configuration

    • Command Type

      • Windows cloud computers: Set the parameter to PowerShell or Bat.

      • Linux cloud computers: Set the parameter to Shell.

    • Command Content

      Enter a command based on your business requirements.

      Note

      The command must return a result with each execution. Interactions with the command output are not supported.

    Select Cloud Computers

    Select the cloud computers to which you want to send remote commands.

    Note
    • You can select cloud computers that are only in the Running state.

    • You can select up to 500 cloud computers in a region. If you select more than 300 cloud computers at a time, the system batch runs commands. You can query the results by command execution ID.

    • You can quickly filter cloud computers by Cloud Computer Name, Cloud Computer ID, Office Network ID, Username, and Expiration soon.

    After executing a command, you can enter another command in the Command Content text box to run it.

Send remote commands to cloud computer shares

  1. In the left-side navigation pane, choose Resources > Shared Cloud Computer.

  2. In the upper-left corner of the top navigation bar, select a region.

  3. On the Many-to-Many tab of the Shared Cloud Computer page, find the many-to-many share to which you want to send a remote command and click its ID.

  4. On the Command Execution Details tab, click Send Remote Commands.

  5. In the Send Remote Commands dialog box, configure the following parameters based on your business requirements and click Execute.

    Parameter

    Description

    Command Type

    • Windows cloud computers: Set the parameter to PowerShell or Bat.

    • Linux cloud computers: Set the parameter to Shell.

    Select Cloud Computers

    Select the cloud computers to which you want to send remote commands.

    • All: Send a remote command to all cloud computers that are in the Running state within the many-to-many share.

    • Specific: Select the cloud computer to which you want to send a remote command from the drop-down list within the many-to-many share.

    Command Content

    Enter a command based on your business requirements.

    Note

    The command must return a result with each execution. Interactions with the command output are not supported.

    After executing a command, you can enter another command in the Command Content text box to run it.

What to do next

After you execute a command, you can view the command status, ID, content, and execution time.

Scenario

Method

View the status of commands executed on cloud computers

  • Single cloud computer

    On the Cloud Computers page, find the cloud computer whose command execution details you want to view, click its ID, and then click the Command Execution Details tab to proceed.

  • Multiple cloud computers

    On the Remote Commands page, search for the desired command by command ID. Click the ID in the Command ID column or View in the Actions column. On the page that appears, click the Executions tab or Command Content tab to proceed.

View the command execution details of a cloud computer share

On the Shared Cloud Computer page, find the many-to-many share whose command execution details you want to view, click its ID, and then click the Command Execution Details tab to proceed.