< Back

Disconnect-MonTarget

Sat Jan 18, 2020 4:21 pm

NAME Disconnect-MonTarget



SYNOPSIS

Disconnects all sessions for a given target.





SYNTAX

Disconnect-MonTarget [-Capability] <String> [-Connection] <Object> [[-TargetName] <String>] [<CommonParameters>]





DESCRIPTION

Disconnects all sessions for a given target.





PARAMETERS

-Capability <String>

The capability for which to cancel the connection.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

The hashtable of connections generated from Connect-MonTarget



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TargetName <String>

The target to disconnect from.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Disconnect-MonTarget -Capability 'WinRM' -Connection $Connection -TargetName server.contoso.com



Disconnects all WinRM related sessions for server.contoso.com











RELATED LINKS