netsh - jasper-zanjani/Windows-Server GitHub Wiki
Enable port forwarding ("portproxy
") to a WSL2 distribution (src)
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=2222 connectaddress=172.23.129.80 connectport=2222
Configure DNS to be dynamically assigned
netsh interface ip set dns "Wi-Fi" dhcp
Delete Wi-Fi profiles
netsh wlan delete profile name=*
Turn off Windows firewall
netsh advfirewall set allprofiles state off
Enable firewall rule group
netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=yes
Show Wi-Fi passwords (src
netsh wlan show profile wifi key=clear
Check/reset WinHTTP proxy
netsh winhttp show proxy
netsh winhttp reset proxy