How to Disable NetBIOS over TCP/IP
Keywords: Disable NetBIOS over TCP/IP
Question:
Can anyone tell me how to write a script to disable "NetBIOS over TCP/IP" option in WINS network properties on Windows OS? Thanks much in advance.Answer:
The following is a _very_ quick script that should help.WinsRoot = regopenkey(@regmachine,"SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces") NicReg = regopenkey(WinsRoot,"Tcpip_{974CB562-BB31-4E89-BA72-5B64150DE5F5}") ; This tells it what nic to look at, you may need to check on your pc OldSetting = regqueryvalue(nicReg,"[NetbiosOptions]") regsetvalue(NicReg,"[NetbiosOptions]",0) ; Use Netbios setting from DHCP Server regsetvalue(NicReg,"[NetbiosOptions]",1) ; Enable Netbios over TCP/IP regsetvalue(NicReg,"[NetbiosOptions]",2) ; Disable Netbios over TCP/IP regclosekey(NicReg) regclosekey(WinsRoot)I have a single NIC but have 3 Tcpip_ keys. But, only one of them has "DhcpNameServerList" or NetbiosOptions so you should be able to rummage thru the keys & programattically determine which one to change.