Close-WmsApp

Closes an application.

Syntax

Close-WmsApp
     [-SessionId] <UInt32>
     [-ProcessId] <UInt32>
     [-WindowId] <UInt64>
     [-CreateTime] <UInt64>
     [-Server <String>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Close-WmsApp cmdlet closes the specified application using the specified process ID and window ID. The cmdlet first attempts to close the application gracefully. If the application does not close gracefully, the cmdlet forces the application to close.

Examples

Example 1: Close an application

PS C:\> Close-WmsApp -SessionId 3 -ProcessId 852 -WindowId 65854 -CreateTime 45689009809823

This command closes the application running on session 3 with the process ID 852 and window ID 65854.

Use Get-WmsApp to get a list of applications along with their process IDs and window IDs.

Required Parameters

-CreateTime

Specifies the process creation time.

Type:UInt64
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ProcessId

Specifies the ID of the process to close.

Type:UInt32
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SessionId

Specifies the ID of the session.

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

Specifies the ID of the window.

Type:UInt64
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None.

Outputs

None.