Updated on 2026-05-25 GMT+08:00

Creating a Triggered Task

Scenarios

When creating, restarting, or reassigning a desktop, administrators can create a scheduled task to perform a desired operation on the desktop, such as stopping, restarting, or hibernating it, or remotely executing script.

Procedure

  1. Log in to the console.
  2. In the navigation pane, choose Tasks > Triggered Tasks.

    The Triggered Tasks page is displayed.

  1. Click Create Triggered Task. The Create Triggered Task page is displayed.
  2. Perform the operations in Table 1 as required.

    Table 1 Creating a triggered task

    Operation

    Procedure

    Description

    Stopping a desktop

    1. Set Task Type to Shutdown.
    2. Enter the name of the triggered task. The value can contain a maximum of 255 characters.
    3. Select a trigger scenario as required.
      • After desktop creation
      • After desktop rebuilding
      • After user reassignment
      • Desktop not in use
      • Desktop connection failed
    4. Set the waiting time. The value must range from 0 to 43,200 minutes.
    5. Set the execution interval. The value must range from 0 to 168 hours.
    6. Enter the description as required.
    7. Click Next: Select Object. The Select Object page is displayed.
    8. Select All desktops, Desktop, Desktop pools, or Desktop tags from the Available Objects drop-down list box, and select the objects to which the policy is to be applied in the list below.
    9. Click Create Now.

    Administrators can configure a triggered task to shut down cloud desktops.

    Restarting a desktop

    1. Set Task Type to Restart.
    2. Enter the name of the triggered task. The value can contain a maximum of 255 characters.
    3. Select a trigger scenario as required.
      • After desktop creation
      • After desktop rebuilding
      • After user reassignment
      • Desktop not in use
      • Desktop connection failed
    4. Set the waiting time. The value must range from 0 to 43,200 minutes.
    5. Set the execution interval. The value must range from 0 to 168 hours.
    6. Enter the description as required.
    7. Click Next: Select Object. The Select Object page is displayed.
    8. Select All desktops, Desktop, Desktop pools, or Desktop tags from the Available Objects drop-down list box, and select the objects to which the policy is to be applied in the list below.
    9. Click Create Now.

    Administrators can configure a triggered task to restart cloud desktops.

    Hibernating a desktop

    1. Task Type: Select Hibernation.
    2. Enter the name of the triggered task. The value can contain a maximum of 255 characters.
    3. Select a trigger scenario as required.
      • After desktop creation
      • After desktop rebuilding
      • After user reassignment
      • Desktop not in use
      • Desktop connection failed
    4. Set the waiting time. The value must range from 0 to 43,200 minutes.
    5. Set the execution interval. The value must range from 0 to 168 hours.
    6. Enter the description as required.
    7. Click Next: Select Object. The Select Object page is displayed.
    8. Select All desktops, Desktop, Desktop pools, or Desktop tags from the Available Objects drop-down list box, and select the objects to which the policy is to be applied in the list below.
    9. Click Create Now.

    Administrators can configure a triggered task to hibernate cloud desktops.

    • When a task is created with the type Remote script or Restart and the trigger scenario is set to Desktop not in use, it will not be executed again on the same desktop within 12 hours of a successful execution.
    • If the trigger scenario is set to After desktop creation, Desktops cannot be selected as target objects.
    • If the trigger scenario is set to After user reassignment , Desktop pools cannot be selected as target objects.
    • If the trigger scenario is set to Desktop connection failed, the execution interval needs to be configured. Each task is executed only once for the same desktop within this interval.
    • When selecting target objects, you can search for desktops in batches by entering multiple filter criteria. Use commas (,) to separate multiple values, for example, Desktop1,Desktop2,Desktop3.