netsh
Windows CMD · Network · reference only
What it does
Windows network configuration tool: it shows and changes interfaces, the firewall, Wi-Fi and the network stack from the command line.
Syntax
netsh [contexto] [orden]
Options and parameters
interface ip show configShows the IP configuration of all interfaces.
advfirewall show allprofilesShows the Windows Firewall status in each profile.
advfirewall set allprofiles state on|offTurns the firewall on or off in all profiles.
wlan show profilesLists the saved Wi-Fi network profiles.
winsock resetResets the Winsock catalog; requires administrator and a restart.
-c contextoEnters a context directly, such as interface or advfirewall.
Usage examples
netsh interface ip show configShows the IP addresses, gateway and DNS of each interface.
netsh advfirewall show allprofilesChecks whether the firewall is active in the domain, private and public profiles.
netsh wlan show profilesLists the Wi-Fi networks the machine has connected to.
netsh winsock resetResets the network stack when there are connection problems with no clear cause.
Notes and common mistakes
- Most changes require a console with administrator rights.
- Inside netsh you can type a context and navigate with ? to see the available commands.