标签:interface address ip地址 计算机 source
将计算机所有网卡设置为DHCP自动获取IP地址
for /f "skip=3 tokens=3,*" %a in (‘netsh interface show interface‘) do netsh interface ipv4 set address name="%b" source=dhcp
for /f "skip=3 tokens=3,*" %a in (‘netsh interface show interface‘) do netsh interface ipv4 set dnsservers name="%b" source=dhcp
标签:interface address ip地址 计算机 source
原文地址:http://keepup.blog.51cto.com/1363462/1720703