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:
Open a PowerShell session (for example, using PowerShell ICE or Visual Studio Code).
Run the Connect-NME command to connect to Nerdio Manager. See PowerShell Module: Tutorial for details.
Run the Get-NmeWorkspace command.
Using the output from the previous step, define and set the following PowerShell variables.
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.
Using the information in Hostpool, identify the host name for which you need user session information.
Declare a variable for the desired host pool name. For example: $hostpoolName="Multi Session Pool"
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.
Comments (0 comments)