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 |
|
Linux |
|
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
Log on to the Elastic Desktop Service Enterprise console.
In the left-side navigation pane, choose Resource Management > Cloud Computers.
In the top navigation bar, select a region.
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 Command Execution Details tab, and click Send Remote Commands.
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
Log on to the Elastic Desktop Service Enterprise console.
Open the Batch Send Remote Commands page using either method:
Cloud Computers page
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
In the left-side navigation pane, choose . On the O&M Management > Remote Command page, click Batch Send Remote Commands.
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
Log on to the Elastic Desktop Service Enterprise console.
In the left-side navigation pane, choose .
In the top navigation bar, select a region.
On the Many-to-Many tab of the Shared Cloud Computer page, find the target many-to-many shared cloud computer and click its Shared Cloud Computer ID.
On the Command Execution Details tab, click Send Remote Commands.
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 many-to-many 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 Command Execution Details 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 Shared Cloud Computer ID of the target many-to-many pool, then open the Command Execution Details tab. |