How to associate open ports with a PID

Hi,

On Windows 2000 server where the '-o' option for netstat is not available, is there a command or tool that will allow me to associate an open port with a process. I'm in the midst of a security review, and need to close all ports that I don't need that are not being used by the OS. So I need to be able to find out what process is using the open port. On wK3, I can use netstat -ao, but that isn't valid on 2K.

Any help will be greatly appreciated.

Thanks,
Jeff
jpetterAsked:
Who is Participating?
 
aissimConnect With a Mentor Commented:
I would check out PortQry from microsoft; it should give you all the info you need (and some):
http://www.microsoft.com/downloads/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en
0
 
jpetterAuthor Commented:
Thanks aissim....I'll give it a try and see what I get.

Thanks,
Jeff
0
 
aissimCommented:
p.s. You'll definitely want to port the info into a text file as the results are a bit more extensive than netstat.

good luck with the security review!
0
 
jpetterAuthor Commented:
aissim,

Thanks, that gave me what I was looking for.

Jeff
0
All Courses

From novice to tech pro — start learning today.