Use the NETSH command from a command prompt. The syntax for this would be:
netsh int ip set address local static (ip_address) (subnet_address) (default_gateway)
netsh int ip set address local static 192.168.2.2 255.255.255.0 192.168.2.1
(IP address of 192.168.2.2 with a Subnet Mask of 255.255.255.0 and a Default Gateway of 192.168.2.1 would be set on the "Local Area Connection").
If there is more than one NIC then you can specify which connection you want by changing the local to Name="Local Area Connection2" which would work for the second connection. This can be confirmed by doing an IPCONFIG /ALL.
DNS can be set in a similar way:
netsh int ip dns local static (dns_entry) primary
net int ip set dns local static 192.168.2.2 primary