0
我正在尝试使用批处理脚本来识别无线适配器的名称(人们将其重命名)。然后使用答案重新启动该适配器。有没有办法断开/重新连接一个更容易的特定配置文件?识别无线适配器名称和管道命令
for /f "usebackq tokens=* skip=1" %%a in ('wmic.exe nic where "NetConnectionStatus=2 and netconnectionid like '%wi%'" get NetConnectionID') do output=%%A
netsh interface set interface name=%%A admin=disabled
netsh interface set interface name=%%A admin=enabled