PowerShell Module: Export a List of User Sessions

PowerShell Module: Export a List of User Sessions

This feature is only available in the Nerdio Manager Premium edition.

This document explains how to export a list of all active user sessions for a selected host pool.

Prerequisites

Install the PowerShell module. See PowerShell Module: Tutorial for details.

Export a List of User Sessions for a Host Pool

The following procedure allows you to export a list of user sessions for a host pool.

To export a list of user sessions for a host pool:

  1. Open a PowerShell session (for example, using PowerShell ICE or Visual Studio Code).

  2. Run the Connect-NME command to connect to Nerdio Manager. See PowerShell Module: Tutorial for details.

  3. Run the Get-NmeWorkspace command.

  4. Using the output from the previous step, define and set the following PowerShell variables.

  5. Run the Get-NmeWorkspaceSessionHost command with the variables noted in the previous step.

    Get-NmeWorkspaceSessionHost -SubscriptionId $subId -resourcegroup $resourceGroup -workspaceName $workspaceName

    This produces a list of all session hosts and their workspaces.

  6. Using the information in Hostpool, identify the host name for which you need user session information.

  7. Declare a variable for the desired host pool name. For example: $hostpoolName="Multi Session Pool"

  8. Run the Get-NmeHostPoolSessions command.

    Get-NmeHostPoolSessions -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostpoolName

    Output is produced that displays the active sessions for the host pool.

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.