I'm making a little batch file to change some network adapter settings:
Can anyone please explain why this works:
netsh interface ipv4 set address name="Local Area Connection" static 192.168.1.11 255.255.255.0 192.168.1.1
However this doesn't (It amends the IP, SUBNET however it makes no changes to the Gateway):
set /p FIRSTIP=Please type the IP address provided: set /p SUBNETIP=Please type the Subnet IP provided: set /p DFTGATEWAY=Please type the Gateway provided: netsh interface ipv4 set address name="Local Area Connection" static %FIRSTIP% %SUBNETIP% %GATEWAY%
This is on a Windows 10 machine. I've been scratching my head at this one and most KB articles seem of little help.