Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Disconnect-WmsSession

Last Updated: 3/31/2017

SYNOPSIS

Disconnects a session.

SYNTAX

DisconnectById

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

DisconnectAll

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
Parameter Sets: DisconnectAll
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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
Parameter Sets: (All)
Aliases: ComputerName

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SessionId

Specifies an array of session IDs.

Type: UInt32[]
Parameter Sets: DisconnectById
Aliases: 

Required: True
Position: 0
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
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

WmsSession

OUTPUTS

None.

NOTES

Close-WmsSession

Get-WmsSession

Lock-WmsSession

Unlock-WmsSession

© 2017 Microsoft