Using netstat -a -o -n
I can get the list of ports and PID
then I need to go to task manager and add the PID and see who is it.
(pretty frustrating)
I was wonder if there is a CMD command which does it all ( using find
, for
, powershell
)
so that I could get the process name
Best Answer
Solution
Use the
-b
parameter:Note The
netstat -b
command will fail unless run from an elevated command prompt.Workaround
Filter the process list and find the PID you're interested in:
Alternate solution
You can use
Tcpvcon.exe
instead. No admin rights required.