GetNetTcpProcess

1.0.1

Shows which process owns each TCP port on Windows, like netstat -ano but returning PowerShell objects. Get-NetTcpProcess combines Get-NetTCPConnection with Win32_Process and returns one object per connection with the local and remote address and port, the TCP state, and the owning process name, ID and path. Optional switches add the parent process and the command line
Shows which process owns each TCP port on Windows, like netstat -ano but returning PowerShell objects. Get-NetTcpProcess combines Get-NetTCPConnection with Win32_Process and returns one object per connection with the local and remote address and port, the TCP state, and the owning process name, ID and path. Optional switches add the parent process and the command line. Filter by one or more TCP states with -State. Works in Windows PowerShell 5.1 and PowerShell 7+ on Windows.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name GetNetTcpProcess

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name GetNetTcpProcess

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2023 Joe Brown. Licensed under the GNU General Public License v3.0.

Package Details

Author(s)

  • Joe Brown

Tags

Windows Network TCP Port Process Netstat

Functions

Get-NetTcpProcess

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

1.0.1: Documentation only; no change in behavior. Adds a full README, a command reference (docs/Get-NetTcpProcess.md) and a changelog; completes the comment-based help (all parameters, output properties, eight examples, notes) so Get-Help Get-NetTcpProcess -Full and -Online are useful. See https://github.com/joeb1kenobe/GetNetTcpProcess/blob/main/CHANGELOG.md

FileList

Version History

Version Downloads Last updated
1.0.1 (current version) 10 11/10/2026
1.0.0 7 11/10/2026