netsh interface ipv4 show interfaces
netsh interface ipv4 set address name="NOME_DA_INTERFACE" static IP_ADDRESS MASCARA GATEWAY
Exemplo:
netsh interface ipv4 set address name="Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1
(Opcional) Definir DNS manualmente:
netsh interface ipv4 set dns name="NOME_DA_INTERFACE" static 8.8.8.8
Ou para adicionar um DNS secundário:
netsh interface ipv4 add dns name="NOME_DA_INTERFACE" 8.8.4.4 index=2