Network shell (netsh) is a command-line utility for configuring, managing, and monitoring network components and server roles on Windows and Windows Server systems. With netsh, you can view and modify network settings, automate tasks, and troubleshoot network issues locally or remotely.
advfirewall
List firewall rules
netsh advfirewall firewall show rule name=all verbose > rules.txt
notepad.exe rules.txt
Reference
- Network shell (netsh) (Microsoft)