Disconnect-WmsSession

Disconnects a session.

Syntax

Disconnect-WmsSession
          [-SessionId] <UInt32[]>
          [-Server <String>]
          [-WhatIf]
          [-Confirm]
          [<CommonParameters>]
Disconnect-WmsSession
          [-All]
          [-Server <String>]
          [-WhatIf]
          [-Confirm]
          [<CommonParameters>]

Description

The Disconnect-WmsSession cmdlet disconnects the specified session. You cannot disconnect the cmdlet's process.

Examples

Example 1: Disconnect a session

PS C:\> Disconnect-WmsSession -SessionId 3

This command disconnects the session with the ID 3.

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

-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

-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

WmsSession

Outputs

None