Jorge's Quest For Knowledge!

All about Windows Server, ADDS, ADFS & FIM (It Is Just Like An Addiction, The More You Have, The More You Want To Have!)

(2011-10-23) Configuring The NetBIOS Setting On A Windows Computer From The Command Line

Posted by Jorge on 2011-10-23


To configure the NetBIOS settings on any Windows computer you can use one of the following methods.

-

[Method 1]

Created a batch file and put the following in as its contents. This will target every NIC fulfilling the criteria as mentioned in the first line (the condition) of the FOR statement

@ECHO OFF CLS SETLOCAL ENABLEDELAYEDEXPANSION FOR /F "tokens=*" %%A IN ('REG QUERY "HKLM\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces" ^| FIND/I "Tcpip_"') DO ( SET REGPATH=%%A REG ADD "!REGPATH!" /V NetBiosOptions /T REG_DWORD /D 2 /F )

-

-

[Method 2]

Use the following command lines to configure the NetBIOS settings on a per NIC basis. First query for the NetBIOS configuration of each available NIC in the system.

WMIC NICConfig Get Caption,Index,TcpipNetbiosOptions

image

Figure 1: NetBIOS Setting Configuration For Every NIC In The System

-

To configure the NetBIOS setting on a specific NIC you need to identity the NIC through its index number as shown in figure 1.

WMIC NICConfig Where Index=7 Call SetTcpipNetbios 2

-

The meaning of the possible values is:

  • 0 –> Use NetBIOS Setting From The DHCP server
  • 1 –> Enable NetBIOS Over TCP/IP
  • 2 –> Disable NetBIOS Over TCP/IP

-

image

Figure 2: Configuring The NetBIOS Setting O)n The NIC With Index 7 (Intel ® Pro/1000 MT Network Connection)

-

Check the new value shows

image

Figure 3: NetBIOS Setting Configuration For Every NIC In The System After Changing It For The Targeted NIC

-

The NIC properties show

image

Figure 4: NetBIOS Setting Configuration For The Targeted NIC After Changing It

-

Cheers,

Jorge

———————————————————————————————

* This posting is provided "AS IS" with no warranties and confers no rights!

* Always evaluate/test yourself before using/implementing this!

* DISCLAIMER:

http://jorgequestforknowledge.wordpress.com/disclaimer/

———————————————————————————————

############### Jorge’s Quest For Knowledge #############

#########

http://JorgeQuestForKnowledge.wordpress.com/ ########

———————————————————————————————

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: