WINDOWS CLI设置DNS(批量 多网络连接适用)
(for /f "skip=2 tokens=3* delims= " %%a in ('netsh interface show interface') do (netsh interface ip set dns "%%b" static xx.xx.xx.xx primarynetsh interface ip add dns "%%b" xx.xx.xx.xx index=2))
(for /f "skip=2 tokens=3* delims= " %%a in ('netsh interface show interface') do (netsh interface ip set dns "%%b" static xx.xx.xx.xx primarynetsh interface ip add dns "%%b" xx.xx.xx.xx index=2))