I frequently change my IP address for various reasons. So I created a .cmd to set it to a static IP and one to set it back to DHCP.
The interface name can be found @ Control Panel\Network and Internet\Network Connections and must match .CMD, in this example I will use "Local Area Connection" but you could switch it to Wi-Fi easily etc etc.
To set static IP: [IP ADDRESS] [SUBNET] [GATEWAY]
To set back to DHCP:
To change DNS entry 1:
To change DNS entry 2:
To set DNS back to DHCP:
DNS to DHCP
Disable or Enable Interface: