TechShizz | Netsh commands

Netsh commands

Show TCP/IP settings
netsh interface ip show config

Change network configuration

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0
192.168.0.254

Use a dynamic DHCP assigned address—The command

netsh interface ip set address "Local Area Connection" dhcp

Change a DNS server address

netsh interface ip set dns "Local Area Connection" static 192.168.0.2

Dynamically assign the DNS server address

netsh interface ip set dns "Local Area Connection" dhcp

Configure a WINS server

netsh interface ip set wins 192.168.0.100

Work with remote systems

netsh set machine remotecomputer

Save the current configuration

netsh interface dump >  mycfg.dat

Restore network configuration

netsh exec mycfg.dat


Add comment