Category Archives: Commands

windows – simple network commands

ipconfig /alldisplay information about all network interfaces currently in operation
ipconfig /displaydnsdisplay local DNS cache
arp -adisplay the ARP table
netsh wlan show profilesshow saved wireless profiles
netsh firewall set opmode disabledisable the firewall old style
netsh advfirewall set currentprofile state offdisable windows firewall
netsh  advfirewall set allprofiles state offdisable windows firewall
netsh wlan export profile folder=. key=clearexport wifi keys as plaintext in xml file
netsh interface ip show interfaceslist interface with id’s/mtu’s
netsh interface ip set address local static <ip> <mask> <gw> <id>set ip for interface
netsh interface ip set dns local static <ip>set DNS server for interface
netsh interface ip set address local dhcpset interface to use DHCP
netstat -anolist open connections
netstat -anop tcp 1netstat loop
netstat -an| findstr LISTENINGlist all listening ports
route printlist routing talbe
route add <dst_ip> mask <subnetmsk_gw_ip> metric <costmetric> if <int>add static ip route
nslookup
> set type=any
> ls -d <domain>
 DNS zone transfer
tftp -I <ip> GET <file on tftpserver>tftp file transfer
net view /domainshow hosts in current domain
FacebookTwitterGoogle+Share