PowerShell Logo Small

Get-NetTCPConnection



This is the built-in help made by Microsoft for the command 'Get-NetTCPConnection', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets TCP connections.

SYNTAX


Get-NetTCPConnection [[-LocalAddress] <String[]>] [[-LocalPort] <UInt16[]>] [-AppliedSetting <AppliedSetting[]>] [-AsJob] [-CimSession <CimSession[]>] [-RemoteAddress
<String[]>] [-RemotePort <UInt16[]>] [-State <State[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetTCPConnection cmdlet gets current TCP connections. Use this cmdlet to view TCP connection properties such as local or remote IP address, local or remote po
rt, and connection state.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=288389
Get-NetUDPConnection

REMARKS

<

Examples


Example 1: Get all connections

PS C:\>Get-NetTCPConnection



This command gets all current TCP connections.




Example 2: Get established connections

PS C:\>Get-NetTCPConnection –State Established



This command gets all TCP connections that have an Established state.




Example 3: Get Internet TCP connections

PS C:\>Get-NetTCPConnection –AppliedSetting Internet



This command gets all TCP connections that use a TCP applied setting of Internet.