Information Technology Reference
In-Depth Information
3.
Click on Internet Protocol (TCP/IP), and select Properties.
4.
Click on Advanced. From the WINS tab, select the radio button next to one of the
following settings for NetBIOS over TCP/IP:
￿ Use NetBIOS settings from the DHCP server. (This is the default. If a static IP address
is used or the DHCP server does not provide NetBIOS settings, enable NetBIOS over
TCP/IP.)
￿ Enable NetBIOS over TCP/IP.
￿ Disable NetBIOS over TCP/IP.
5.
Click OK when you're finished.
Using a Command-Line Interface
To configure this setting via the command line, you first need to create a .reg file containing the
Registry key described in the “Using the Registry” section, and then use Regedit to import the
file into your local Registry.
The following shell script will automate the process of importing the .reg file; it takes the IP
address of the interface you are trying to change as a command-line argument, and it disables
TCP/IP over NetBIOS for that interface.
set IPADDRESS=%1
set TFILE=%TEMP%\HWIDfile.tmp
set DEFAULT=00000000
set ON=00000001
set OFF=00000002
wmic nicconfig get ipaddress,settingid >%TFILE%
for /f "tokens=2" %%h in ('type %TFILE% ^| findstr "%IPADDRESS%"') do set HWID=%%h
echo Windows Registry Editor Version 5.00 >%TFILE%
echo >> %TFILE%
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
NetBT\Parameters\Interfaces\Tcpip_%HWID%] >>%TFILE%
echo "RegistrationEnabled"=dword:%OFF% >>%TFILE%
:: regedit /s %TFILE%
del %TFILE% >null
Using the Registry
To configure the NetBIOS over TCP/IP settings for a Windows Server 2003 computer, set the
following Registry value:
Search WWH ::




Custom Search