English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there any command-line utilities privided by Microsoft (That is normally installed with Windows XP/ 2003 Server or shipped with it) that could kill the TCP connections in a command prompt box.

I guess it maybe kind of done with "netstat" or "netsh". By the way, I am not Interested in 3rd party tools (Thanks).

2006-09-24 01:19:59 · 2 answers · asked by ali_fakoor 3 in Computers & Internet Computer Networking

2 answers

NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

-a Displays all connections and listening ports.
-e Displays Ethernet statistics. This may be combined with the -s option.
-n Displays addresses and port numbers in numerical form.
-p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default.
interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current configuration information once.


EXAMPLES

netstat - displays all local network information. Below is an example of what may be displayed

Proto Local Address Foreign Address State
TCP hope:4409 www.computerhope.com:telnet ESTABLISHED
TCP hope:3708 multicity.com:80 CLOSE_WAIT
TCP hope:4750 www.google.com:80 CLOSE_WAIT


Notice: Keep in mind that if you have network applications open, such as the browser you're using to view this page, additional items will be listed when you run "netstat" and/or the "netstat -a" command. So you may see items from Computer Hope in your list; if you want a true listing of what is running in the background, close all programs and run the command.




netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [Command | -f ScriptFile]

? Displays a list of commands.
add Adds a configuration entry to a list of entries.

add helper Installs a helper DLL.



delete Deletes a configuration entry from a list of entries.

delete helper Deletes a helper DLL.



dump Displays a configuration script.
exec Runs a script file.
help Displays a list of commands.
interface Changes to the `interface' context.

ip Changes the 'interface ip' context.



ras Changes to the `ras' context.

aaaa Changes to the `ras aaaa' context.
appletalk Changes to the `ras appletalk' context.
ip Changes the 'ras ip' context.
ipx Changes to the `ras ipx' context.
netbeui Changes to the `ras netbeui' context.



routing Changes to the `routing' context.

ip Change to the 'routing ip' context.
ipx Changes to the `routing ipx' context.



set Updates configuration settings.

machine Sets the current machine on which to operate.



show Displays information.

show alias Lists all defined aliases.
show helper Lists all the top-level helpers.





Available commands after you have entered the netsh command (typing netsh at the prompt and pressing enter).

.. Goes up one context level.
? Displays a list of commands.
abort Discards changes made while in offline mode.
add Adds a configuration entry to a list of entries.
alias Adds an alias.
bye Exits the program.
commit Commits changes made while in offline mode.
delete Deletes a configuration entry from a list of entries.
dump Displays a configuration script.
exec Runs a script file.
exit Exits the program.
help Displays a list of commands.
interface Changes to the `interface' context.
offline Sets the current mode to offline.
online Sets the current mode to online.
popd Pops a context from the stack.
pushd Pushes current context on stack.
quit Exits the program.
ras Changes to the `ras' context.
routing Changes to the `routing' context.
set Updates configuration settings.
show Displays information.
unalias Deletes an alias.

EXAMPLES

netsh

Enter the netsh command.

netsh dump

Dump all the network information as a script to the screen. Can also be sent to a file by doing netsh dump > file.txt . This script can then be executed using the exec command.

set address name="Local Area Connection" source=dhcp

Set the "Local Area Connection" to DHCP.

set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1

Set the local address to Static.

netsh interface ip show config

View network ip configuration. Below is an example of what may be seen.

Configuration for interface "Local Area Connection"
DHCP enabled: Yes
InterfaceMetric: 1
DNS servers configured through DHCP
WINS servers configured through DHCP

2006-09-24 02:47:39 · answer #1 · answered by 1 5 · 0 4

No way - you won't be able to attempt this, you won't be able to downgrade through Dos command on the spot. As you initially upgraded, you write over the unique OS (Win ninety 8) with WinXp , till you created 2 walls & had WIn ninety 8 on a million & Win Xp on the different. the acceptable aspect so that you'll be able to do is, purchase a CADDY, positioned the confusing rigidity in it & connect to a operating workstation & move each little thing from the crashed confusing rigidity to the different confusing rigidity. you've gotten no situation doing this. once you've achieved that, reformat the confusing rigidity with a clean domicile windows XP set up. desire this facilitates you out.

2016-11-23 18:49:55 · answer #2 · answered by ferree 4 · 0 0

fedest.com, questions and answers