好吧,至少你应该知道对应的网卡名称或者网络连接名称才行- @echo off
- for /f %%i in ('wmic nic where "NetConnectionID='以太网' or NetConnectionID='本地连接' or NetConnectionID='无线网络连接'" get Index^|findstr [0-9]') do (
- wmic nicconfig where "Index='%%i' and TcpipNetbiosOptions!='2'" call SetTcpipNetbios 2
- )
- pause
复制代码
|