Set network configurations from the command line in Windows

One of the quickest and easiest ways to set network configuration on a network adapter is via command line.

Lets use the following criteria:

We will be setting up Local Are Connection

IP: 192.168.200.2
MASK: 255.255.255.0
GW: 192.168.200.1
GW Metric: 1

Here is the syntax for IPv4:

netsh interface ipv4 show config
netsh interface ip set address name="Local Area Connection" static 192.168.200.2 255.255.255.0 192.168.200.1 gwmetric=1