echo usage: ipset subnet (ex ipset .100 sets IP to 172.16.100.222 and GW to 172.16.100.254). By Creature | Ncpa.cpl

netsh interface ip set address "Ethernet" static 172.16.%1.222 255.255.255.0 172.16.%1.254
rem netsh interface ip set address "Ethernet" static 192.168.1.31 255.255.255.0 192.168.1.1

netsh interface ipv4 add dnsserver "Ethernet" 8.8.8.8
netsh interface ipv4 add dnsserver "Ethernet" 1.1.1.1
rem netsh interface ip set dns "Ethernet" static 8.8.8.8

pause