Using Netsh
Netsh 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 also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer.Netsh can also save a configuration script in a text file for archival purposes or to help you configure other servers.
Netsh contextsNetsh interacts with other operating system components using dynamic-link library (DLL) files. Each Netsh helper DLL provides an extensive set of features called a context, which is a group of commands specific to a networking component. These contexts extend the functionality of netsh by providing configuration and monitoring support for one or more services, utilities, or protocols. For example, Dhcpmon.dll providesnetsh the context and set of commands necessary to configure and manage DHCP servers.
To run a netsh command, you must start netsh from the Cmd.exe prompt and change to the context that contains the command you want to use. The contexts that are available to you depend on which networking components you have installed. For example, if you type dhcp at the Netsh command prompt, you change to the DHCP context, but if you do not have DHCP installed the following message appears:
netsh>?
netsh>interface
What command can directly use in our testing?
wlan context
1. Please try netsh>wlan show networks
2. Please try netsh>wlan show drivers
3. please try netsh>wlan show all
4.Please try netsh>wlan show blockednetworks
5.Please try netsh>wlan show interface
6.Please try netsh>bye
interface contaxt
1.Please try netsh>interface dump
2.Please try netsh>interface ipv4 show address
3.Please try netsh>interface ipv4 show dnsservers
End:
Some functions of the netsh can be replace by ipconfig, inconfig /all, inconfig /release,etc...