Отображение текущих параметров
netsh interface ipv4 show ipaddresses "LAN" normal
netsh interface ipv4 show dnsservers "LAN"
route print
netsh interface ipv4 set address name="LAN" static 192.168.105.13 255.255.255.0 192.168.105.99
netsh interface ipv4 set dnsserver "LAN" static none
netsh interface ipv4 add dns "LAN" 10.0.1.3 1
netsh interface ipv4 set address name="LAN" source=dhcp
netsh interface ipv4 set dns name="LAN" source=dhcp
Запрос правил брандмауэра
netsh advfirewall firewall show rule name=all
Включение и выключение брандмауэра
netsh advfirewall set allprofiles state on
netsh advfirewall set allprofiles state off
netsh advfirewall reset
netsh advfirewall firewall add rule name="All ICMP V4" dir=in action=allow protocol=icmpv4
netsh advfirewall firewall add rule name="Allow RDP" dir=in action=allow protocol=TCP localport=3389
netsh advfirewall firewall add rule name="Allow Messenger" dir=in action=allow program="C:\Program Files\messenger\msnmsgr.exe"
Экспорт/импорт установок брандмауэра
netsh advfirewall export "C:\temp\WFconfiguration.wfw"
netsh advfirewall import "C:\temp\WFconfiguration.wfw"