API Reference
Command
Get-CxTcpConnection
Returns TCP connection inventory for the local or a remote computer.
Examples
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
- Target computer(s). Use '.' for local computer or provide DNS names.
Outputs
ComputerX.Ports.TcpConnectionInfo