Create and edit Scripted Sequences

Create and edit Scripted Sequences

This article guides you through the process of creating and editing Scripted Sequences in Nerdio Manager, to simplify operations such as installing applications, managing registry keys, and executing custom scripts. It also features a reference table detailing the types of actions you can add to a scripted sequence.

Prerequisites

      Nerdio Manager subscription

The tasks in this procedure apply to the following Nerdio Manager subscription level(s):

AVD Core

True

AVD Premium

True

Windows 365

True*

Unified Endpoint Management

True

* Windows 365 deployment is supported via Intune device management only; direct deployment via Windows 365 provisioning policies is planned for a future release.

       System/environment requirements

You must have followed the steps in Enable Scripted Sequences to configure the Scripted Sequences feature for use in your environment.

For Intune deployment, the Task Worker requires the PowerShell script execution policy to allow unsigned script execution. The script will be publicly signed in a future release.

       Role-based access control (RBAC) and permissions

Creating and editing scripted sequences in Nerdio Manager requires the Admin role.

Create or edit a scripted sequence

Nerdio Manager provides a graphical interface for creating and editing Scripted Sequences. The outline process for creating and editing sequences is as follows. For details of the actions you can add to a sequence, see Scripted Sequences: task types and parameters.

To create or edit a scripted sequence:

  1. Navigate to Automation > Scripted Sequences, and select the Scripted Sequences tab to display a table of existing scripted sequences.

  2. Optionally, start typing in the Search box to filter the displayed scripted sequences by title and/or description.

  3. To open the sequence editor, either

    • locate the scripted sequence you want to edit in the table and select the corresponding Edit icon; or

    • select + New Scripted Sequence to build a new scripted sequence.

  4. To add a new task to the sequence, select + Add Task in the left-hand (Tasks) editor pane.

  5. To add a new task group, select New Group in the left-hand (Tasks) editor pane. You can then add tasks to the group by selecting the plus icon within the group.

    Note: Task groups allow you to organize and manage complex sequences more effectively by collecting sets of actions that accomplish an outcome on the target device into a single logical unit. For example, to deploy an application to a device, you might need to run an install action, edit one or more registry keys, and then restart the device. Placing all these actions inside a single task group makes clear both in the sequence editor and in logs that these tasks combine to produce the desired outcome.

  6. To edit the parameters of a new or existing task:

    • In the right-hand (Task Options) editor pane, enter a name for the task, and choose an available Action from the dropdown.

    • Fill in or select any additional parameters for the selected action.

      Tip: For a detailed explanation of available actions and their parameters, see Scripted Sequences: task types and parameters.

  7. To move a task up or down in the execution order, or to move it into or out of a task group, use the up and down arrows.

  8. To turn a task or task group on or off in the sequence, use the toggle switch.

    Note: All tasks are enabled on creation, but tasks that are turned off will be skipped over when you run the sequence while remaining available to edit and re-add to the sequence later.

  9. Select Save to create your sequence or save your changes.

Scripted Sequences: task types and parameters

The following table gives a summary of the types of action you can add to scripted sequences, and the parameters each requires.

Action

Description

Parameters/notes

Install Application

Install a selected application from a supported repository on the target device(s), if it is not already installed.

Note: A supported repository is a Winget, Shell Apps, or Intune repository that is known to Nerdio Manager.

  • App: select an application from the dropdown.

    • To search for a specific application, select one or more repos to search from and start typing in the search box.

    • Alternatively check the Show favorites only box to display a drop-down list of frequently-installed applications, and select an application from this list.

Uninstall Application

Uninstall a selected application on the target device(s), if it is installed

  • App: Select an application from the dropdown.

    • To search for a specific application, select one or more repos to search from and start typing in the search box.

    • Alternatively check the Show favorites only box to display a drop-down list of frequently-installed applications, and select an application from this list.

Run PowerShell Script

Run a custom PowerShell script on the target device(s)

Enter or paste your script directly into the editor.

Restart

Restart the target device(s)

N/A

Delay

Wait the designated amount of time before moving on to the next task in the sequence

  • Delay (seconds): Enter an integer value to specify the wait time in seconds.

Add Registry Key

Add the specified registry key to the target device(s)

Note: This action creates a blank registry key. To specify a value for the key, run the Set Registry Value action.

Caution: If the specified registry key already exists on the target device, the task will fail and no further tasks from the sequence will run on the device. To work around this limitation, we recommend creating the registry key via the Run PowerShell Script action, using a script that first checks for its existence.

  • Key path: Specify the path for the key to be added.

Delete Registry Key

Delete the specified registry key from the target device(s)

Caution: If the specified registry key does not exist on the target device, the task will fail and no further tasks from the sequence will run on the device. To work around this limitation, we recommend deleting the registry key via the Run PowerShell Script action, using a script that first checks for its existence.

  • Key path: Specify the path for the key to be deleted.

Set Registry Value

Set the specified registry value on the target device(s)

Caution: If the specified registry key does not exist on the target device, the task will fail and no further tasks from the sequence will run on the device. To work around this limitation, we recommend setting the registry value via the Run PowerShell Script action, using a script that first checks for its existence.

  • Key path: Specify the path for the key to be modified.

  • Name: Enter the name of the parameter you want to add.

  • Value type: Select either String (for text values) or Dword (for boolean or numerical values).

  • Value: Enter a string or numerical value, depending on the selected Value type.

    Note: Although the DWORD type supports any positive integer in the 32-bit number space, its most common usage is a binary scheme, where 0 equates to False or Disabled and 1 to True or Enabled.

Need help?

Raise a support ticket for this item.

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Please sign in to leave a comment.