Get-​Wms​App

Gets a collection of currently running applications in a session.

Syntax

Get-WmsApp
   [-SessionId] <UInt32>
   [-Server <String>]
   [<CommonParameters>]

Description

The Get-WmsApp cmdlet gets a collection of the currently running applications in a specified session. It also gets the process ID, window ID, and process creation time of the applications.

Examples

Example 1: Get running applications

PS C:\> Get-WmsApp -SessionId 3
Name                                                               ProcessId                                WindowId                           CreateTime
----                                                               ------                                   ----                               ----------
Calculator                                                         4228                                     197108                             129937600254314944

This command gets the applications that are running in session 3.

Required Parameters

-SessionId

Specifies the ID of a Remote Desktop Session (RDS).

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

Inputs

None.

Outputs

This cmdlet returns a WmsRunningApp collection as PSObject collection.