Get-Wms Session

Gets session information.

Syntax

Get-WmsSession
   [-SessionId] <UInt32[]>
   [-Thumbnail <ThumbnailSizePS>]
   [-Server <String>]
   [<CommonParameters>]
Get-WmsSession
   [-All]
   [-Thumbnail <ThumbnailSizePS>]
   [-Server <String>]
   [<CommonParameters>]

Description

The Get-WmsSession cmdlet gets information for a specified session or for all sessions.

Examples

Example 1: Get all sessions

PS C:\> Get-WmsSession -All
SessionId    : 2
State        : RemoteConnection
IsOrchestratable    : False
IsAdmin      : True
IsMOGUser    : True
UserName     : Test
StationId    : 0
ComputerName : Test1
ClientName   : Test2
DomainName   : TestDomain
IsRail       : False
SessionId    : 3
State        : ConnectedToStation
IsOrchestratable    : False
IsAdmin      : True
IsMOGUser    : True
UserName     : Administrator
StationId    : 1
ComputerName : Test1
ClientName   : Test1
DomainName   : TestDomain
IsRail       : False

This command gets session information for all sessions. The session with ID 2 is a remote session, and the session with ID 3 is a session connected to a local Windows MultiPoint Server station.

Required Parameters

-All

Indicates that this operation applies to all sessions on the target host.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SessionId

Specifies an array of session IDs.

Type: UInt32[]
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Optional Parameters

-Server

Specifies the fully qualified host name of the MultiPoint Server that is the target of the command. The default is localhost.

Type: String
Aliases: ComputerName
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Thumbnail

{{Fill Thumbnail Description}}

Type: ThumbnailSizePS
Parameter Sets: Small, Medium, Large, FullScreen
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Inputs

None.

Outputs

This cmdlet returns a WmsSession collection as a PSObject collection.