netsh advfirewall show allprofiles
netsh wlan show wlanreport This creates an HTML file in C:\ProgramData\Microsoft\Windows\WlanReport\ showing every connection, disconnect, and error over the last three days. Everyone knows ipconfig /release and /renew . But those commands time out if the DHCP server is slow. Netsh is more reliable for scripting. netsh commands
netsh interface portproxy add v4tov4 listenport=8080 connectaddress=192.168.1.50 connectport=80 While netsh can manage ARP , HTTP , WinRM , and RAS , stick to the common commands above until you are comfortable. Misusing netsh http delete sslcert can break IIS and Remote Desktop instantly. Cheat Sheet Summary | Task | Command | | :--- | :--- | | Reset network stack | netsh winsock reset | | See WiFi password | netsh wlan show profile name="SSID" key=clear | | Backup firewall rules | netsh advfirewall export backup.wfw | | Set static IP | netsh interface ip set address "Ethernet" static 10.0.0.2 255.0.0.0 10.0.0.1 | | Create port forward | netsh interface portproxy add v4tov4 listenport=8080 connectport=80 | Final Thoughts Netsh isn't glamorous. It has a steeper learning curve than PowerShell's Get-NetAdapter , but it is always available. Whether you are repairing a corporate laptop via remote command line or hacking your own forgotten WiFi password, netsh gets the job done with zero bloat. Netsh is more reliable for scripting