Get-WmsSession
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.
Parameters
-All
Indicates that this operation applies to all sessions on the target host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SessionId
Specifies an array of session IDs.
Type: | UInt32[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Thumbnail
Specifies the Thumbnail size of the session.
Type: | ThumbnailSizePS |
Accepted values: | Small, Medium, Large, FullScreen |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
UInt32[]
Outputs
Microsoft.WindowsServerSolutions.MultipointServer.PowerShell.Commands.Library.WmsSession