一句话修改windows下网卡的设置

netsh interface ip set address name="本地连接" source=static addr=192.168.100.100 mask=255.255.255.0 gateway=192.168.100.1 gwmetric=auto
netsh interface ip set address name="本地连接" source=dhcp

参考:

“Stay hungry, Stay foolish.”