You can send remote commands to a cloud desktop to perform O&M operations without the need to log on to the cloud desktop.

Prerequisites

The cloud desktop is in the Running state.

Background information

This feature relies on Cloud Assistant. Cloud Assistant is a built-in service that is provided by Alibaba Cloud to perform O&M and deploy tasks. Cloud Assistant can automatically run Bat, PowerShell, or Shell commands on cloud desktops without the need to log on to cloud desktops. You can use Cloud Assistant to perform tasks. For example, you can run automated O&M scripts and install or uninstall software.
Notice Do not stop Cloud Assistant. Otherwise, the preceding features cannot be used. By default, Cloud Assistant is pre-installed and automatically runs on cloud desktops. You can log on to cloud desktops to view the Cloud Assistant service. On Windows cloud desktops, the Cloud Assistant service name is Aliyun Assist Service. On Linux cloud desktops, the Cloud Assistant service name is aliyun.

Procedure

  1. Log on to the EDS console.
  2. In the upper-left corner of the top navigation bar, select a region.
  3. In the left-side navigation pane, choose Cloud Desktops > Desktops.
  4. On the Cloud Desktops page, find the cloud desktop that you want to send remote commands and use one of the following methods to send the remote commands:
    • Click the More in the Actions column and select Send Remote Commands.
    • Click the ID of the cloud desktop to go to the details page. Click the Command Execution Details tab and click Send Remote Commands.
  5. In the Send Remote Commands dialog box, perform the following operations:
    1. Select a command type.
      • For a Windows cloud desktop, select PowerShell or Bat.
      • For a Linux cloud desktop, select Shell.
    2. In the Command Content code editor, enter a command.
      Note The command that you want to run can return the output only in a single execution. Interactions with returned information are not allowed.
    3. Click Execute.
      • You can click Stop to stop executing the command.
      • After the command is executed, you can view the command output in the Command Output section.
    Note After a command is executed, you can enter another command in the Command Content code editor and execute the command.

Result

After the command is executed, you can view the command execution information about the cloud desktop on the Command Execution Details tab on the desktop details page. You can also view the command execution information about all cloud desktops on the Remote Commands page.