Close Established Connections From Command Line

Hi Everybody !

Does anybody know of a utility (Microsoft or 3rd party) or some script (vbs\wsh etc) that will allow an admin to close ESTABLISHED connections FROM THE COMMAND LINE ?

Netstat output example:
Proto Local Address Foreign Address State

The empathies is closing the connection, NOT the active process\service.

The above is needed in order to run a batch file on the server (via a remote control utility in a console like mode-the server is the host-remote is WinXP) which includes closing the established connection (The process closes
the active remote control session and waits for another connection), and running several commands.
True-this can be done by killing\closing the application or by stopping the service, but the solution suggested is
Quicker (less then 1 second to close the connection vs. a few seconds to close the application\stop the service),
Has much less potential for problems (Who among us hasn't came across a program\service which refused to load, with little or no error message, and started pulling out what little hair he had left...),
And imho, is more precise, concise and to-the-point.

I've googled long and deep and found no such utility.
(Hopefully) It exists in in some small corner of some small
integration\networking package.
Has any body seen\heard of such a utility ?

P.S: Unfortunately, I haven't mastered the scripting writing art to date.
If somebody could help out with a small\no-nonsense script (which closes a single existing established connection in one constant port without any need for user input\command line switches) I'd be very much obliged.
1 answer Last reply
More about close established connections command line
  1. all yours

    <A HREF="" target="_new">click to fix </A>
Ask a new question

Read More

Connection Command Line Networking