netstat -p UDP -o -> PID and the process name in Windows

  • Thread starter Thread starter karthikbalaguru
  • Start date Start date
K

karthikbalaguru

Hi,
I am trying to identify the active connections
that are being used by certain unknown processes.
The below command displays active connections
based on UDP and includes the process ID (PID)
for each connection -
netstat -p UDP -o

But, how to identify the process name in for
each PID that is displayed via the above netstat
command in Windows XP ?

Thx in advans,
Karthik Balaguru
 
Hi,
I am trying to identify the active connections
that are being used by certain unknown processes.
The below command displays active connections
based on UDP and includes the process ID (PID)
for each connection -
netstat -p UDP -o

But, how to identify the process name in for
each PID that is displayed via the above netstat
command in Windows XP ?

The below links clarify regd it -
1. Viewing the process id via the Task Manager in Windows
Reference - http://www.mydigitallife.info/2008/...cess-identifier-process-id-or-pid-on-windows/

2. Viewing the process via netstat itself -
option ' -b ' - Displays the binary (executable) program's name
involved in creating each connection
or listening port. (Windows XP, 2003 Server only (not Microsoft
Windows 2000 or other
non-Windows operating systems))

Reference - http://en.wikipedia.org/wiki/Netstat

Thx,
Karthik Balaguru
 
karthikbalaguru said:
Hi,
I am trying to identify the active connections
that are being used by certain unknown processes.
The below command displays active connections
based on UDP and includes the process ID (PID)
for each connection -
netstat -p UDP -o

But, how to identify the process name in for
each PID that is displayed via the above netstat
command in Windows XP ?

Thx in advans,
Karthik Balaguru

At the command prompt the naked TASKLIST command will list all the PIDs
and their process names. If you want to find a single PID, for example
PID # 772:

tasklist /fi "PID eq 772"

John
 
At the command prompt the naked TASKLIST command will list all the PIDs
and their process names.  If you want to find a single PID, for example
PID # 772:

tasklist /fi "PID eq 772"

Cool :-)
Thx for that info.

The below command w.r.t netstat also works fine(Note the usage of -b
and -a) -
netstat -p UDP -o -b -a

Karthik Balaguru
 
karthikbalaguru said:
Cool :-)
Thx for that info.

The below command w.r.t netstat also works fine(Note the usage of -b
and -a) -
netstat -p UDP -o -b -a

Thanks for the tip, I kinda figured that there would be a way to do it
right from the netstat command but I was too lazy to give it a try or
look it up.

John
 
Back
Top