netsh exec C:\configs\office_setup.txt This exports everything (IP, DNS, Wins, Routes). Use carefully. 6. Routing & Port Forwarding (Advanced) You can turn Windows into a basic router using netsh.
Mastering Netsh: The Swiss Army Knife of Windows Networking netsh commands
netsh advfirewall firewall add rule name="Block_Notepad" dir=out program="C:\Windows\notepad.exe" action=block Your laptop remembers every Wi-Fi network you have ever joined. Netsh will happily print those passwords in plain text. netsh exec C:\configs\office_setup
netsh interface ipv4 add route 10.0.0.0/16 "Ethernet" 192.168.1.1 store=persistent Listen on port 8080, forward to port 80 on 192.168.1.50 forward to port 80 on 192.168.1.50