win10网卡设置为自动获取ip

89 阅读1分钟
@echo off

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

cd /d "%~dp0"


netsh interface ip set address "以太网" dhcp