Skip to main content
Skip table of contents

Managing Remote Actions

Customizing built-in remote actions

Nexthink offers a set of preconfigured remote actions that you can manually install from Nexthink Library. Go to the Nexthink Library module within your Nexthink instance to install, manage, and update predefined remote actions.

Refer to Nexthink Library documentation for more information.

Accessing the Manage remote actions page

To access the Remote Actions administration page:

  1. Select Remote Actions > Manage remote actions.


Creating custom remote actions

To create a new remote action:

  1. Select Remote Actions from the main menu.

  2. Click on the New button at the top of the navigation menu.

RemoteActions - 1707382332.png

Alternatively, create a new remote action through the Administration page:

  1. Select Remote Actions > Manage remote actions.

  2. Click on the New remote action button in the top-right corner of the page.

  3. Fill in all necessary information and click on the Save Remote Action button.


The New Remote action page includes 2 configuration tabs to define the remote action.

  • General: Enter the name, NQL ID, description, triggering options, and purpose of the remote action.

  • Script: Import a remote action script for Windows and macOS platforms. Once imported, fill in the Parameters field, and Outputs information appears. Once imported, fill in the Parameters field, and the Outputs information appears. Use the Advanced Configuration option to select the context for executing the script, and the options available include local system or interactive user. To save the remote action, you must add a Windows PowerShell or macOS Bash script.

Refer to the in-product documentation for more information. You can find it in the side panel menu.

Remote actions table

The remote actions table lists all available remote actions.

RemoteActions - 1707385103.png

The table is organized by:

  • Name: The name of the remote action.

  • Origin: An indication of where the remote action originates from:

    • Custom: A remote action created within the Remote Actions module.

    • Installed from Library: A remote action installed from the Nexthink Library module. You can configure the following fields:

      • Description

      • Triggering

      • Input Parameter Description

      • Input Parameter Value

      • Output Parameter Description

      • Custom Value

      • All fields in the Schedule tab
        Refer to the Nexthink Library documentation for more information on how to install a remote action.

    • Copied from library: A remote action copied from the Nexthink Library module. You can fully edit copied remote actions to fit your needs. Refer to the Nexthink Library documentation for more information on how to create a copy of a remote action.

  • Tags: Displays the list of tags assigned to each remote action.

  • Platforms: The platform for which a remote action was designed.

  • Triggers: The trigger method used to configure a remote action with the following options:

    • Manual: Trigger the remote action manually from the web interface, e.g., through Investigations or Device View.

    • API: Trigger the execution on selected devices via API​.

    • Schedule: Trigger the execution using an NQL query on a recurring basis at a scheduled time.

  • Search field: A field that filters the table by searching for the name of a remote action.

Action menu

Select a relevant remote action and click over the action menu on the right side of the table to view:

  • Details: Open the execution details page.

  • Configure: Change the configuration of a library remote action.

  • Edit: Edit a selected remote action.

  • Edit tags: Create, assign, and edit remote action tags. Refer to the Tagging remote action section.

  • Share: Grant permissions to other users to view or edit a remote action. Refer to the Sharing a remote action section.

  • Copy NQL ID: Copy the NQL ID of a remote action for use by the API.

  • Export: Export a remote action to a JSON file.

  • Delete: Remove a remote action from the system.

Tagging remote actions

Create and associate tags with remote actions to quickly filter the results of the remote actions table.

A remote action can have a maximum of 10 tags associated with it.

Filtering with tags

  1. Click the tags icon in the right-side menu to open the Tags panel.

  2. Search for a specific tag at the top of the panel.

  3. Select one or more tags to filter the campaigns table.

Creating and assigning tags

To add tags to a remote action:

  1. Select Remote Actions > Manage remote actions.

  2. Select a relevant remote action and hover over the action menu on the right side.

  3. Click on the action menu icon and select Edit tags to open the Tags pop-up.

  4. Enter a new name or search for the tag name in the Tags field.

  5. Click on the tag action menu to change the color of the tag or delete it.

  1. Click Save to add the tag to the remote action.

When you delete a tag, it is removed only from the remote action you have selected.

Sharing a remote action

Share a remote action with profiles and grant them appropriate permissions to view dashboards, make edits or execute remote actions. For example, you can share the Get Battery Status remote action with the Service desk profile that contains permissions to execute and view the remote action dashboard. Only users with the Manage All Remote Actions feature permission enabled can see the Share option. Refer to the Getting started with Remote Actions documentation for more information.

share remote action modal
  • Hover over a remote action to reveal the action menu and select Share. The Share remote action modal opens.

  • In the Add profile text field, type in the user profiles you wish to share the remote action with.

  • From the Select permissions drop-down menu, select the appropriate permissions for the profile. The choices are:

    • View dashboards: Access the remote action dashboards from the navigation panel and the remote actions table on the Overview page.

    • Edit: Edit a remote action.

    • Execute: Execute a remote action.

  • Click on Clear all to disable all permissions.

  • Click on the Grant permissions button to share the remote action.

Importing a remote action

To import a remote action from your hard drive:

  • Click on the Import button located at the top-right of the page to import a remote action. The valid file format is JSON.

  • Select the file from your hard drive and import it into the system. The file appears on the list of remote actions.

To import a remote action from Nexthink Library:

  • Click on the action menu located next to the Import button.

  • Select Nexthink library. The system redirects you to the library page with remote actions to download.

  • Import the downloaded file.

Executing remote actions on-demand

Run remote actions on-demand from the NQL query results on the Investigations page. This can be on a single target device, multiple devices, or all of them, depending on whether you have configured the remote action to allow multiple executions.

  • Select Investigations from the main menu.

  • Using the NQL editor, enter a query that returns a list of the devices you are interested in.

  • Click on the Run button to execute the query.

  • Select one or multiple devices on which you want to run the remote action, or select all of them using the checkbox at the top of the first column.

Selecting all devices

Example 1

An NQL query that returns all devices

Example 2

An NQL query that returns a specific device
| where name == "Device-Name"
| list name
  • From the action bar, select Execute remote action. A modal appears with a list of available remote actions to choose from.

  • Select the remote action and click on the Execute button.

Executing remote actions on the Investigations page

When running remote actions on a large number of devices, Nexthink recommends exporting the execution results, as the user interface limits the number of records displayed to 10,000.

Tracking remote action executions

Track all remote actions triggered from Amplify and filter the fields in the remote_action.executions table. To access the triggered remote action data, include these fields in the NQL query.

  • trigger_method: The trigger mode used to start the remote action execution.

  • internal_source: The Nexthink module used to trigger the remote action.

  • external_reference: The reference ID used to track the ticket.

  • external_source: The identifier of the external web application record in relation to the remote action was executed.

The table is organized based on the results of the NQL query executed in remote_action.executions.

Binary Profiling - 11707674226 (1).png

Example 1

An NQL query that returns all triggered remote actions based on the internal_source
remote_action.executions during past 7d
| where internal_source == "Amplify"
| list , , time , trigger_method , status

Example 2

An NQL query that returns all triggered remote actions based on the trigger_method.
remote_action.executions during past 7d
| where trigger_method == manual
| list , , time , trigger_method , status

Querying remote actions with NQL

Refer to Remote Actions NQL examples for more information.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.