Windows commandline networking

It is possible to configure your Windows networking and services without needing to use a mouse or navigate through the GUI. Here are some useful commands.

IP

Setting a static IP:
netsh interface ip set address name="Local Area Connection" static 172.16.3.4 255.255.0.0 1172.16.3.1 1

Setting up DHCP:
netsh interface ip set address name="Local Area Connection" dhcp
Then use ipconfig /release and ipconfig /renew

Setting up DNS:
set dns name="Local Area Connection" static 208.67.222.222 register=PRIMARY
add dns name="Local Area Connection" 208.67.200.200

Checking your config:
netsh interface ip show config

Saving all of your settings to a file:
netsh -c interface  dump > filename1.txt

Using a file to set the config (I don't know why there are two ways to do this):
netsh -f filename2.txt
netsh exec filename2.txt

services

Stopping a service:
sc stop SNMP

Disabling a service (note the funny spacing around the equal sign):
sc config SNMP start= disabled