關閉 NetBIOS over TCP/IP

關閉 NetBIOS over TCP/IP

rem 查詢電腦中 NetBIOS 狀態
wmic nicconfig get caption,index,TcpipNetbiosOptions

關閉 NetBIOS over TCP/IP
for /l %%a in (0 1 20) do (wmic nicconfig where index=%%a call SetTcpipNetbios 2)

SetTcpipNetbios
參數:
0 – Use NetBIOS setting from the DHCP server

1 – Enable NetBIOS over TCP/IP

2 – Disable NetBIOS over TCP/IP

參考來源:
1. how to set netbios over tcp/ip enabled or disabled from command line ?
2. Configuring NetBIOS over TCP/IP