netsh

Przydatne polecenia netsh /?

netsh interface show interface
netsh interface ip show interfaces
netsh interface ip set address „local area connection” static 10.14.0.10 255.255.255.0 10.14.0.254 1
netsh interface ipv4 set address name=”Local Area Connection” source=dhcp
netsh interface add route prefix=10.12.1.0/24 interface=”Local Area Connection” nexthop=10.14.0.254

netsh wlan show networks
netsh wlan connect name=”$SSID”

netsh interface tcp show global
netsh interface udp show global
netsh interface ipv4 show dynamicportrange protocol=tcp

netsh interface ipv4 show route
netsh interface ipv4 show tcpconnections

netsh advfirewall show currentprofile
netsh advfirewall firewall add rule name=”RDP” protocol=TCP dir=in localport=3389 action=allow
netsh advfirewall firewall add rule name=”ICMP_v4″ dir=in action=allow protocol=icmpv4
netsh advfirewall set allprofiles state off
netsh advfirewall reset ; UWAGA: reset to default settings

netsh trace start capture=yes tracefile=c:\trace.etl persistent=yes maxsize=8192
netsh trace stop
Microsoft Network Monitor 3.4 https://www.microsoft.com/en-us/download/4865
Tools > Options > Parser Profiles > set Windows > „Set As Active”

CMD

winver
systeminfo
whoami
ipconfig /All