Created
August 27, 2019 02:12
-
-
Save michael-wolfenden/7c0ec8da2b89bba7622a2991505c003e to your computer and use it in GitHub Desktop.
[Troubleshoot Port exhaustion] https://docs.microsoft.com/en-us/windows/client-management/troubleshoot-tcpip-port-exhaust #tcp #powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count -Descending |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment