Windows set static & dynamic ip script

  
        Use netsh to set the static ip address: @echo off netsh interface ip set address "local connection" static 172.24.83.239 255.255.255.0 172.24.83.247 netsh interface ip set dns "local connection" 172.24.102.110 netsh interface ip add dns "Local Connection" 172.24.102.110 index=2 pause Use netsh to set the dynamic ip address: @echo off netsh interface ip set address name="local connection" source=dhcp netsh interface ip set dns name="local connection " source=dhcp pause
Copyright © Windows knowledge All Rights Reserved