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.

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
Accept wildcard characters: False

-SessionId

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

Type: UInt32
Position: 0
Default value: None
Accept pipeline input: True
Accept wildcard characters: False

Inputs

UInt32

String

Outputs

Microsoft.WindowsServerSolutions.MultipointServer.PowerShell.Commands.Library.WmsRunningApp