Open-WmsApp

Launches an application in a session.

Syntax

Open-WmsApp
    [-SessionId] <UInt32[]>
    [-FileToRun] <String>
    [-Server <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Open-WmsApp cmdlet launches an application in the specified session based on the application specified in the cmdlet.

Examples

Example 1: Open an application

PS C:\> Open-WmsApp -SessionId 3 -FileToRun "notepad.exe"

This command launches Notepad in session 3.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FileToRun

Specifies the file to launch.

Type:String
Position:1
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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

UInt32[]

String

Outputs

Object