(2014-06-17)
Some plausible, contradictory examples:
# netsh interface ip show config
# netsh interface ip set address "Local Area Connection" dhcp
# netsh interface ip set address "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254 1
# netsh interface ip set dns "Local Area Connection" dhcp
# netsh dnsclient add dnsserver "Local Area Connection" 192.168.137.202 1
# netsh dnsclient add dnsserver "Local Area Connection" 192.168.137.200 2
Arp: for some reason you might get the error
The ARP entry addition failed: Access is denied when trying to add a static arp with the
arp -s command. In Windows 2K8 you can get around this with netsh instead:
netsh interface ip add neighbors "Local Area Connection" 192.168.1.10 00-25-84-f6-90-2e store=persistent
Netsh has a bunch of other commands (
Ref) but you have to be really careful which version of netsh you have, it seems to get more powerful the newer it is.