I\'m trying to change a machine IP address via cmd.exe with this code:
netsh int ip set address name=\"Local Area Connection\" source=static addr=???.???.??
You can use the command below:
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1
where
192.168.0.100 is the IP address255.255.255.0192.168.0.1You can also have the DNS configured automatically by DHCP using following command:
netsh interface ip set dns "Local Area Connection" dhcp