Extreme Networking with netsh
Buried deep inside of Windows are gold nuggets that are extremely powerful and useful. One such nugget is the network shell, or netsh. To give you a good idea of what tasks can be accomplished with this command:
C:\Documents and Settings\Aaron\Desktop>netsh
netsh>?
The following commands are available:
Commands in this context:
.. - 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.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
interface - Changes to the `netsh 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 `netsh ras' context.
routing - Changes to the `netsh routing' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.
winsock - Changes to the `netsh winsock' context.
The following sub-contexts are available:
bridge diag firewall interface ras routing winsock
To view help for a command, type the command, followed by a space, and then
type ?.
netsh>
This has so many advanced uses, it’s crazy. But one thing that I find useful when trying to make sure ports are open to and from my computer is:
netsh firewall add TCP 3306
Be careful, but add this tool to your toolkit.
Powered by Qumana
Related Stories
POSTED IN: Advanced, Network Connectivity
0 opinions for Extreme Networking with netsh
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: