fortypoundhead.com

NETSH (Win2k Resource Kit, standard command in XP)

Posted On 2008-07-02 by FortyPoundHead
Keywords: Command Reference
Tags: Windows Commandline Windows
Views: 2075


Netsh.exe is a tool an administrator can use to configure and monitor Windows-based computers at a command prompt. With the Netsh.exe tool, you can direct the context commands you enter to the appropriate helper, and the helper then carries out the command. A helper is a Dynamic Link Library (.dll) file that extends the functionality of the Netsh.exe tool by providing configuration, monitoring, and support for one or more services, utilities, or protocols. The helper may also be used to extend other helpers.

NETSH (Win2k Resource Kit, standard command in XP) 

Configure interfaces, routing protocols, filters, routes, RRAS, .

syntax

NETSH [-r router name] [-a AliasFile] [-c Context] [Command | -f ScriptFile]

key

context may be any of: DHCP, ip, ipx, netbeui, ras, routing,
autodhcp, dnsproxy, igmp, mib, nat, ospf, relay, rip, wins.

Under Windows XP the available contexts are:

AAAA, DHCP, DIAG, IP, RAS, ROUTING, WINS

To display a list of commands that can be used in a context, type the
context name followed by a space and a ? at the netsh> command prompt.

e.g.

netsh> routing ?

command may be any of:

/exec script_file_name
Load the script file and execute commands from it.

/offline
Set the current mode to offline.
changes made in this mode are saved, but require a "commit"
or "online" command to be set in the router.

/online
Set the current mode to online.
Changes in this mode are immediately reflected in the router.

/commit Commit any changes made in the offline mode to the router.

/popd Pop a context from the stack.

/pushd Push current context onto the stack.

/set mode [mode =] online | offline
Set the current mode to online or offline.

/abort Discard changes made in offline mode.

/add helper DLL-name
Install the helper .dll file in netsh.exe.

/delete helper .dll file name
Remove the helper .dll file from Netsh.exe.

/show alias list all defined aliases.

/show helper list all top-level helpers.

/show mode show the current mode.

/alias List all aliases.

/alias [alias_name]
Display the string value of the alias.

/alias [alias_name] [string1] [string2 ...]
Set alias_name to the specified strings.

/unalias alias_name
Delete an alias.

/dump - file name
Dump or append configuration to a text file.

/bye Exit NETSH

/exit Exit NETSH

/quit Exit NETSH

/h Display help

/help Display help

/? Display help


About the Author

FortyPoundHead has posted a total of 1974 articles.

 


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.156.92.138

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers

New security implemented
dwirch posted on August 8, 2017 at about 6:43 in Site News

New security implemented
dwirch posted on July 23, 2017 at about 6:58 in Site News

Fold Code Manager into main KB?
VB6Boy posted on July 22, 2017 at about 14:42 in Site News

Fold Code Manager into main KB?
dwirch posted on July 22, 2017 at about 14:41 in Site News