Send remote commands

更新时间:
复制 MD 格式

Run Bat, PowerShell, or Shell commands on cloud computers directly from the console — no terminal connection required. When a cloud computer is unreachable through remote desktop (for example, due to a session conflict or network issue), remote commands are often the only way to perform maintenance.

How it works

Remote commands are powered by Cloud Assistant, Alibaba Cloud's built-in Operations and Maintenance (O&M) agent. Cloud Assistant runs on every cloud computer by default:

Operating system

Service name

Windows

Aliyun Assist Service

Linux

aliyun

Do not stop these services. Stopping them disables remote commands and other Cloud Assistant-dependent functions.

Limitations

Constraint

Detail

Command interactivity

Only non-interactive commands are supported. Commands must return a result after a single execution.

Cloud computer state

The cloud computer must be in the Running state.

Batch size

Up to 500 cloud computers per region per batch.

Automatic task splitting

If you select more than 300 cloud computers, the system splits the task into multiple executions. Use the command execution ID to track results across splits.

Execute as End User

Supports only PowerShell and Bat commands. Shell is not supported.

Prerequisites

Before you begin, ensure that:

  • The target cloud computer is in the Running state

Send a command to a single cloud computer

  1. Log on to the WUYING Workspace console.

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

  3. In the top navigation bar, select a region.

  4. On the Cloud Computers page, find the target cloud computer and open the Send Remote Commands dialog using either method:

    • In the Actions column, click More, then select Send Remote Commands.

    • Click the cloud computer ID, go to the Remote Commands tab, and click Send Remote Commands.

  5. Configure the following parameters and click Execute.

    Parameter

    Description

    Command Type

    Select PowerShell or Bat for Windows cloud computers, or Shell for Linux cloud computers.

    Command Content

    Enter the command to run.

After the command completes, enter another command in Command Content and click Execute to run additional commands.

Send a command to multiple cloud computers

  1. Log on to the WUYING Workspace console.

  2. Open the Batch Send Remote Commands page using either method:

    Cloud Computers page

    1. In the left-side navigation pane, choose Resource Management > Cloud Computers. On the Cloud Computers page, click Send Remote Commands in the upper-left corner.

    Remote Commands page

    1. In the left-side navigation pane, choose O&M Management > Remote Command. On the O&M Management > Remote Command page, click Batch Send Remote Commands.

  3. Configure the following parameters and click Confirm.

    Parameter

    Description

    Command Configuration

    Set the command type and content: Command Type — select PowerShell or Bat for Windows, or Shell for Linux. Command Content — enter the command to run.

    Execute as End User

    When enabled, the command runs in the end-user session — useful for commands that require GUI access or interaction with the user environment. Only PowerShell and Bat are supported. When enabled, the list shows only cloud computers with connected users.

    Select Cloud Computers

    Select the cloud computers on which to run the command. Filter by Cloud Computer Name, Cloud Computer ID, Office Network ID, Username, or About to Expire to narrow the list.

After the command completes, enter another command in Command Content and execute it to run additional commands.

Send a command to a shared cloud computer

  1. Log on to the WUYING Workspace console.

  2. In the left-side navigation pane, choose Resource Management > Shared Cloud Computer.

  3. In the top navigation bar, select a region.

  4. On the Computer Pool tab of the Shared Cloud Computer page, find the target computer pool and click its computer pool ID.

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

  6. Configure the following parameters and click Execute.

    Parameter

    Description

    Command Type

    Select PowerShell or Bat for Windows cloud computers, or Shell for Linux cloud computers.

    Select cloud computers

    Choose the target scope: All — sends the command to all Shared Cloud Computers in the Running state within this computer pool. Specific — select individual Shared Cloud Computers from the drop-down list.

    Command Content

    Enter the command to run.

After the command completes, enter another command in Command Content and execute it to run additional commands.

View command execution results

After a command runs, view its execution status, command ID, content, and execution time:

Scenario

Steps

Single cloud computer

On the Cloud Computers page, click the cloud computer ID, then open the Remote Commands tab.

Multiple cloud computers

Go to O&M Management > Remote Command. Search by command ID, then click the ID or View in the Actions column. Open the Executions or Command Content tab as needed.

Shared Cloud Computer

On the Shared Cloud Computer page, click the computer pool ID of the target computer pool, then open the Command Execution Details tab.