(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 primary
netsh interface ip add dns "%%b" xx.xx.xx.xx index=2
)
)
WINDOWS CLI设置DNS(批量 多网络连接适用)
最新推荐文章于 2024-03-20 08:18:30 发布