What is Netsh ?
Tags: netsh, PowerShell, TCP/IP
Network Shell (netsh) is a command-line utility in MS Windows that allows both local and remote configuration of network devices, such as the network interface. In addition, netsh has many other useful "contexts", for example, IPSec and NAP.
Netsh was introduced with Windows 2000. It allows you to change your interface IP address and parameters, such as wireless SSID for example. Another common use of netsh is to reset the TCP/IP stack to default, a task that previously required reinstallation of TCP/IP.
Here are a few examples of using netsh:
To reset TCP/IP:
netsh interface ip reset C:\resetlog.txt
To view the IPv6 address of your interface:
netsh interface ipv6 show address
To list all netsh "contexts":
To list only the TCP interface context commands:
netsh interface tcp show ?
We have documented all important TCP/IP settings for tweaking broadband internet connections here:
Tweaking Windows 7/Vista/2008