TestimoX

API Reference

Command

Get-CxTcpConnection

Namespace ComputerX.PowerShell
Outputs
ComputerX.Ports.TcpConnectionInfo

Returns TCP connection inventory for the local or a remote computer.

Examples

Authored help example

Example 1: Lists local listening and established TCP connections.

PS>


Get-CxTcpConnection
        

Example 2: Queries a remote server to review listeners and active sessions.

PS>


Get-CxTcpConnection -ComputerName APP01
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxTcpConnection [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: false
Target computer(s). Use '.' for local computer or provide DNS names.

Outputs

ComputerX.Ports.TcpConnectionInfo