Download

REM Enable dhcpstaticipcoexistence to allow for both DHCP and Static IP
netsh interface ip set interface interface="Ethernet" dhcpstaticipcoexistence=enable
REM Configure the interface to use DHCP (if needed)
netsh interface ip set address "Ethernet" dhcp
REM Add secondary Static IP (takes a few seconds to show up in ipconfig)
netsh int ip add address "Ethernet" 192.168.1.39 255.255.255.0
REM Delete the IP (if needed)
netsh int ip delete address "Ethernet" 192.168.1.39 255.255.255.0

Updated November 12 2023.