ports in use computer cmd code example
Example 1: cmd listening ports
C:\> netstat -a -b
Example 2: cmd listening ports
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess
C:\> netstat -a -b
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess