Get-RASRDSession
SYNOPSIS
Retrieves information about one or multiple RD Sessions.
SYNTAX
Get-RASRDSession -ServerId <uint> -Source {RDS | VDI | AVD | All} [-GroupId <uint>]
[-HostName <string>] [-IP <string>] [-SiteId <uint>]
[-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
[-ThemeId <uint>] [-User <string>] [<CommonParameters>]Get-RASRDSession -Server <string> -Source {RDS | VDI | AVD | All} [-GroupId <uint>]
[-HostName <string>] [-IP <string>] [-SiteId <uint>]
[-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
[-ThemeId <uint>] [-User <string>] [<CommonParameters>]Get-RASRDSession [-GroupId <uint>] [-HostName <string>] [-IP <string>] [-SiteId <uint>]
[-Source {RDS | VDI | AVD | All}]
[-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
[-ThemeId <uint>] [-User <string>] [<CommonParameters>]DESCRIPTION
Retrieves the information about one or multiple RD Sessions, from different sources such as RDS, VDI, and AVD.
EXAMPLES
Example 1
Retrieves a list of RD Sessions.
Example 2
Retrieves a list of RDS Sessions.
Example 3
Retrieves a list of RDS Sessions pertaining to the specified server.
Example 4
Retrieves a list of VDI Sessions for SiteId 1.
Example 5
Retrieves the AVD Session for ServerId 1.
Example 6
Retrieves the Sessions with specified Username, IP and State.
PARAMETERS
-SiteId
Site ID from which to retrieve the Remote Desktop Session information (optional).
-Source
Source from which to retrieve the Remote Desktop Session information.
Possible values: RDS, VDI, AVD, All
Type reference: RDSessionSource
-ServerId
The Host ID of the server for which to retrieve the information (optional).
-Server
The name of the server to filter the Remote Desktop Session information (optional).
-HostName
The name of the host to filter the AVD/VDI Remote Desktop Session information (optional).
-State
State to filter the Remote Desktop Session information (optional).
Possible values: Active, Connected, ConnectQuery, Shadow, Disconnected, Idle, Listen, Reset, Down, Init, All
Type reference: SessionState
-User
User to filter the Remote Desktop Session information (optional).
-IP
IP Address to filter the Remote Desktop Session information (optional).
-ThemeId
The Theme ID for which to retrieve the information (optional).
-GroupId
The RDS Group ID for which to retrieve the information (optional).
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
RDSession
RELATED LINKS
Last updated