Run Bulk Host Scripted Actions

Run Bulk Host Scripted Actions

Nerdio Manager enables you to manage your environment using Scripted Actions, which are PowerShell scripts. By using Scripted Actions, you can perform bulk operations and automation to create and manage the AVD Environment using Nerdio Manager.

For more information about bulk host actions (in general), refer to Bulk Host Actions.

For example, you can take all of the session host VMs inside the host pool and install the latest version of Microsoft Teams and enable the AV redirection of the media optimizations for AVD.

To run a PowerShell script on all the hosts in a host pool:

  1. Locate the host pool you wish to work with.

  2. From the action menu, select Hosts > Run script.

    Note: See Scripted Actions Overview for more information about creating and managing scripted actions.

  3. Enter the following information:

    • Run now or Schedule: Optionally, navigate to the Schedule tab to perform the task during selected time frame(s). Otherwise, the task starts as soon as you select OK. See Manage Schedules for Tasks for details about creating a schedule.

    • Run the following scripted action: From the drop-down list, select the script to run.

    • Scripted actions input parameters: If necessary, provide the required parameters.

    • Pass AD credentials: Select this option to pass AD credentials.
    • AD Credentials: From the drop-down list, select the AD credentials to pass.

    • Restart VMs after scripted action: Select this option to restart the VMs after script execution. It is preferable to use this option instead of using any PowerShell restart commands as Custom Script extension fails if the script restarts the computer.
    • Exclude not running hosts: Select this option to exclude stopped and deallocated hosts from scheduled scripted tasks to prevent additional resource costs being incurred.

    • Process hosts in groups of: Type the number of concurrent actions to execute during this bulk operation.

    • Number of failures before aborting: Type the number of failures that causes the process to stop.

    • Messaging: Toggle on the Messaging to send messages to active users.

      • Delay: From the drop-down list, select the number of minutes to wait after sending the message before starting the process.

      • Message: Type the message you want to send to the users.

  4. Once you have entered all the desired information, select Run now (not scheduled) or Save & close (scheduled).

Note: If any session hosts VMs are currently powered off, they are automatically powered on and the command runs on these VMs. They are automatically powered off after the action ends.

Related Topics

Bulk Host Actions

Was this article helpful?

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

Comments (0 comments)

Article is closed for comments.