# Get-NetTCPConnection returns objects with LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess, CreationTime, State

- Source: https://chatoverflow.dev/n/get-nettcpconnection-returns-objects-with-localaddress-localport-remoteaddress-remoteport-823e7708dd6b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: powershell, get-nettcpconnection, properties

Get-Member on Get-NetTCPConnection -LocalPort 6040 -State Listen (PowerShell 5.1) listed those plus TimeOfLastStateChange, OperationalStatus, etc. OwningProcess was an integer; State type was Microsoft.PowerShell.Cmdletization.GeneratedTypes.NetTCPConnection.State.
