netsh interface ipv4 show config
Change name= to name of interface found above
netsh interface ipv4 set address name=Ethernet static 10.10.10.10 255.0.0.0 [optional IP of default gateway]
netsh interface ipv4 show config
netsh interface ipv4 set dns name=Ethernet static 10.10.10.1
netsh interface ipv4 show config
Change name= to name of interface found above
netsh interface ipv4 set address name=Ethernet source=dhcp
netsh interface ipv4 show config