Windows 7 Command line question

dougie1809

New Member
Joined
Mar 7, 2012
Messages
18
Hi,

What command can tell me what service has opened what port?
 


Solution
Use the netstat command with parameters a, o and n:

netstat -a -o -n

Note the PID of the service using the port you want to close then go to task manager and end the process with that PID.
Ok thanks. And how can I go about killing a task? For an example, I see port 135 being used by epmap, so how can I kill epmap from using port 135?
Thanks
 


Use the netstat command with parameters a, o and n:

netstat -a -o -n

Note the PID of the service using the port you want to close then go to task manager and end the process with that PID.
 


Solution
Thanks. Or you can actually use the command 'taskkill -f -pid 1024' (PID of epmap). Why is it telling me Access Denied, when trying to kill the process? Í've tried by task manager, and im even in command line adminstrator?
Thanks
 


Back
Top