netsh

Network Shell Configuration Utility

What Does It Do?

The netsh (Network Shell) command is a powerful scripting utility that lets you view and change almost every network setting on your Windows computer. Think of it as a Swiss Army knife for network configuration.

You can use it to configure network interfaces, manage WiFi settings, control firewall rules, reset network settings, and much more. It's particularly useful for advanced troubleshooting and network management tasks.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

View Network Interfaces

See all network adapters and their current status.

Reset Network Settings

Fix network problems by resetting TCP/IP and Winsock.

Manage WiFi Profiles

View saved WiFi networks and their passwords.

Configure Firewall Rules

Manage Windows Firewall settings and rules.

Common Commands

netsh interface show interface

Displays all network interfaces and their connection status.

netsh interface ipv4 show config

Shows detailed IP configuration for all network adapters.

netsh int ip reset

Resets the TCP/IP stack to fix network connectivity issues (requires admin).

netsh winsock reset

Resets the Winsock catalog to resolve network problems (requires admin).

netsh wlan show profiles

Lists all saved wireless network profiles on your computer.

netsh wlan show profile name="WiFiName" key=clear

Shows the password for a specific WiFi network (replace WiFiName with the actual network name).

netsh advfirewall show allprofiles

Displays Windows Firewall settings for all network profiles.

netsh advfirewall set allprofiles state off

Turns off Windows Firewall for all profiles (requires admin).

Administrator Privileges Required

Many netsh commands (like netsh int ip reset, netsh winsock reset, and firewall modifications) require Administrator privileges to run.

To run commands as Administrator in the simulator:

1.
runas /user:administrator cmd

Request administrator privileges

2.
admin123

Enter the password when prompted

3.
netsh int ip reset

Now you can run netsh commands that require admin

Real Windows: Right-click Command Prompt and select "Run as administrator" before running these commands.

Try It Yourself

Practice using the netsh command in the terminal below. Try typing netsh interface show interface or netsh wlan show profiles