0% found this document useful (0 votes)
97 views2 pages

The Netsh Command

Uploaded by

Safaa Mghar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views2 pages

The Netsh Command

Uploaded by

Safaa Mghar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

The netsh command

The netsh command in Windows is a command-line scripting


utility that allows you to display or modify network configuration
settings of a local or remote computer.

1. Viewing Network Settings:


• To view the network interfaces and their configurations:

netsh interface show interface

• To view detailed configuration of a specific interface (replace


Ethernet0 with the desired interface name):

netsh interface ipv4 show config "Ethernet0"

2. Changing Network Settings:


• To set a static IP address:

netsh interface ipv4 set address "Ethernet0" static


192.168.1.100 255.255.255.0 192.168.1.1

• To set DNS servers:

netsh interface ipv4 set dns "Ethernet0" static 8.8.8.8

3. Managing Firewall Settings:


• To display the firewall settings:

netsh advfirewall show currentprofile


• To enable or disable firewall rules:

netsh advfirewall firewall set rule name="Remote


Desktop (TCP-In)" new enable=yes

4. Wireless Networking:
• To show wireless network profiles:

netsh wlan show profiles

• To connect to a wireless network:

netsh wlan connect name="MyNetwork"


ssid="MyNetwork" interface="Wireless Network
Connection"

5. Resetting Network Configurations:


• To reset TCP/IP stack:

netsh int ip reset

• To reset Winsock catalog:

netsh winsock reset

You might also like