Mastering Netsh: The Swiss Army Knife of Windows Networking
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 (Network Shell) is a command-line utility present in every version of Windows since NT 4.0. It allows you to display, modify, or script the network configuration of your local (or remote) machine. Mastering Netsh: The Swiss Army Knife of Windows