NetShell (netsh) is a powerful built-in command-line utility used by administrators and power users to display, modify, and troubleshoot network configurations. Because netsh allows you to make sweeping changes to your system’s network adapters, firewall, and wireless connections, you must launch your Command Prompt or Windows Terminal with Administrator privileges to use most of these tools.
While Microsoft is gradually shifting some network management functions to PowerShell cmdlets, mastering netsh remains essential for quick diagnostics, scripting, and offline recovery. 1. Network Diagnostics & Stack Resetting
When your internet breaks completely, DNS isn’t resolving, or your IP address behaves erratically, these commands rebuild the plumbing of your network stack. netsh winsock reset
What it does: Resets the Winsock Catalog back to default settings.
When to use: Crucial if a virus, VPN uninstallation, or bad software corrupts your network sockets, blocking web browsing. netsh int ip reset
What it does: Clears and reinitializes the entire TCP/IP stack, rewriting critical registry keys to factory defaults.
When to use: Use this alongside the Winsock reset when you have local connectivity but can’t reach the outside web. It usually requires a system reboot. 2. Wireless Network (Wi-Fi) Management
You can completely control, view, and back up your saved Wi-Fi connections using the wlan context. netsh wlan show profiles
What it does: Displays a clean list of every Wi-Fi network name (SSID) your computer has ever connected to. netsh wlan show profile name=“Wi-Fi_Name” key=clear
What it does: Reveals the saved Wi-Fi password for the specified network in plain text under the “Security settings” section. netsh wlan show drivers
What it does: Displays details about your wireless network card adapter and driver.
When to use: Extremely useful to check if your hardware supports modern features like hosted networks or specific Wi-Fi protocols. 3. Windows Firewall Management
Instead of navigating through multiple layers of Windows settings UI, you can query and configure your active security shield directly. Note that the older netsh firewall context is deprecated, so you should always target advfirewall. 10 Windows Commands That EVERY Nerd Should Know
Leave a Reply