使用脚本修改windows本地连接ip配置

@echo off
set ipaddress=ip地址
set mask=子网掩码
set gateway=网关
set dns=DNS
netsh interface ip set address name="本地连接" source=static addr=%ipaddress% mask=%mask% gateway=%gateway% 1
netsh interface ip set dns name="本地连接" source=static addr=%dns%


猜你喜欢

转载自little-bill.iteye.com/blog/1273309