Ending TCP Connections for ProcessID

  • Thread starter Thread starter jeremysimmonsis
  • Start date Start date
J

jeremysimmonsis

I need to forcefully end the open processes for a specific process ID.

This is for WinXP Pro SP2 only

so far my script looks like this

netstat -o | find /i ":<port>">%temp%\who.txt
FOR /F "tokens=1,2,3,4,5" %%i in (%temp%\who.txt) DO @ECHO %%m

Instead of the ECHO command, I need a simple EXE or VBS to kill,
poison, or otherwise make ineffective the open TCP connections for that
process.
 
I need to forcefully end the open processes for a specific process ID.

This is for WinXP Pro SP2 only

so far my script looks like this

netstat -o | find /i ":<port>">%temp%\who.txt
FOR /F "tokens=1,2,3,4,5" %%i in (%temp%\who.txt) DO @ECHO %%m

Instead of the ECHO command, I need a simple EXE or VBS to kill,
poison, or otherwise make ineffective the open TCP connections for that
process.
Have you tried the free utility TCPView?

King-Daddy
 
POSITRON, according to the usage for this program (I assume you're
referring to the TCPView utility that SysInternals makes) Their website
has this to say about using this tool
http://www.sysinternals.com/Utilities/TcpView.html

<quote>
Tcpvcon Usage
Tcpvcon usage is similar to that of the built-in Windows netstat
utility:

Usage: tcpvcon [-a] [-c] [-n] [process name or PID]

-a
Show all endpoints (default is to show established TCP connections).
-c
Print output as CSV.
-n
Don't resolve addresses.
</quote>

To clarify, I need something to run from the command line. The program
doesn't need a gui.
 
Back
Top