WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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.
Article ID:   W15552
File Created: 2003:05:13:11:28:42
Last Updated: 2003:05:13:11:28:42