![]() |
/ home / tips-and-tricks / netsh-network-administration | |||||||||||||||||||||||||||||||||||||||||||
| How to work with Netsh command tool | ||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||
|
|
Netsh Command / Network administration shell
What it NetshNetsh tool is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh tool also provides an useful feature that allows you to run a group of commands in batch mode. Netsh can also save the list of commands into text file for archival purposes or to help you configure other servers in the same way. You can use the Netsh network administartion tool to perform the following tasks:
Netsh command internal help
C:\netsh netsh>help 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. Netsh contextsNetsh utility interacts with others using dynamic-link library files. Each Netsh helper DLL provides an extensive set of features called a context, which is a group of commands specific to this DLL networking component. These contexts extend the functionality of netsh. For ex., Dhcpmon.dll provides netsh the context and set of commands necessary to configure and manage DHCP settings. For more information about Netsh contexts, use this command in the netsh shell:netsh>show helper DLL Filename Command ------------ ------- HNETMON.DLL bridge DGNET.DLL diag FWCFG.DLL firewall IFMON.DLL interface IFMON.DLL ip IPV6MON.DLL ipv6 IPV6MON.DLL 6to4 IPV6MON.DLL isatap IPV6MON.DLL portproxy RASMONTR.DLL ras RASMONTR.DLL aaaa RASMONTR.DLL appletalk RASMONTR.DLL ip RASMONTR.DLL ipx RASMONTR.DLL netbeui IPMONTR.DLL routing IPMONTR.DLL ip IPPROMON.DLL autodhcp IPPROMON.DLL dnsproxy IPPROMON.DLL igmp IPPROMON.DLL nat IPPROMON.DLL ospf IPPROMON.DLL relay IPPROMON.DLL rip IPPROMON.DLL routerdiscovery IPXMONTR.DLL ipx IPXPROMN.DLL netbios IPXPROMN.DLL rip IPXPROMN.DLL sap IFMON.DLL winsock netsh>
List of available netsh contexts
-r : Configures a remote computer.
Show Network Diagnostic GUI Switch the specified adapter from a static address to DHCP Show multicast joins for an each network inteface Gathering diagnostic data from Windows Firewall show allowedprogram Displays the allowed programs. show config Displays the detailed local configuration information. show currentprofile Displays the current profile. show icmpsetting Displays the ICMP settings. show logging Displays the logging settings. show opmode Displays the operational mode. show portopening Displays the excepted ports. show service Displays the services. show state Displays the current state information. show notifications Displays the current settings for notifications. | |||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||