Netsh

from Wikipedia, the free encyclopedia

netsh ( network shell ) is a program for the Microsoft Windows NT line that enables the configuration of local and remote network settings.

A frequent possibility of using netsh is to reset the TCP / IP - stack , which under Windows 98 was still needed to reinstall the TCP / IP adapter.

Netsh has many other functions, for example the IP configuration can be changed.

Sample application

Displaying the password of an SSID:

netsh wlan show profile (wlan name) key=clear

Reset the TCP / IP stack:

netsh interface ip reset C:\resetlog.txt

Show available interfaces:

netsh interface show interface

Set fixed IP address:

netsh interface ip set address "Local Area Connection" static 123.123.123.123 255.255.255.0

Set fixed IP address and gateway:

netsh interface ip set address "Local Area Connection" static 123.123.123.123 255.255.255.0 123.123.123.1 1

Set two fixed IP addresses:

netsh interface ip set address "Local Area Connection" static 123.123.123.123 255.255.255.0
netsh interface ip add address "Local Area Connection" 234.234.234.234 255.255.255.0

Dynamic IP address:

netsh interface ip set address name="Local Area Connection" source=dhcp

Set name server :

netsh interface ip set dns name="Local Area Connection" source=static address=123.123.123.1

In Internet Explorer registered proxy system wide use:

netsh winhttp import proxy source=ie

netsh and IPv6

Netsh can also read IPv6 information from the stack, and it is more user-friendly than IPv6.exe, which provides the same information.

Display the IPv6 address with netsh:

netsh interface ipv6 show address

See also PNRP

netsh and dhcp server

Netsh can be used to save and restore DHCP servers.

Save all DHCP information

netsh dhcp server \\server1 export c:\sicherung\dhcp all

Restore all DHCP information

netsh dhcp server \\server1 import c:\sicherung\dhcp all

DHCP information dump

netsh dhcp server \\server1 dump > c:\sicherung\dhcp_backup.txt

Web links