PowerShell Logo Small

Get-RDUserSession



This is the built-in help made by Microsoft for the command 'Get-RDUserSession', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets a list of all user sessions in a collection or in a Remote Desktop deployment.

SYNTAX


Get-RDUserSession [[-CollectionName] <String[]>] [[-ConnectionBroker] <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-RDUserSession cmdlet gets a list of all user sessions in a collection or in a Remote Desktop deployment.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkId=294224

REMARKS

<

Examples


Example 1: Retrieve a list of user sessions in a collection

PS C:\> Get-RDUserSession -ConnectionBroker "rdcb.contoso.com"



This command lists user sessions in a collection that is associated with the RD Connection Broker server named rdcb.contoso.com.




Example 2: Retrieve a list of user sessions in multiple collections

PS C:\> Get-RDUserSession -ConnectionBroker "rdcb.contoso.com" -CollectionName @("Session Collection","Virtual Desktop Collection")



This command lists user sessions in the collections named Session Collection and Virtual Desktop Collection. The cmdlet associates these collections with the RD Connection
Broker server named rdcb.contoso.com.