Note
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.
Install the PowerShell module. See PowerShell Module: Tutorial for details.
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-NMEcommand to connect to Nerdio Manager. See PowerShell Module: Tutorial for details. -
Run the
Get-NmeWorkspacecommand. -
Using the output from the previous step, define and set the following PowerShell variables.
-
Run the
Get-NmeWorkspaceSessionHostcommand 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 the
Hostpoolparameter, 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-NmeHostPoolSessionscommand.Get-NmeHostPoolSessions -SubscriptionId $subId -resourcegroup $resourceGroup -hostPoolName $hostpoolName
Output is produced that displays the active sessions for the host pool.
Comments (0 comments)