how can i change the "netbiosoptions" setting for all adapters

G

Guest

how can i change the "netbiosoptions" setting for all adapters in the registry through a .reg file

i don't want to do this for all adapters manually, instead i want a .reg file which i can impor
through regedit /s and which for examples sets the "NetbiosOptions" to dword:0000000
in order to disable netbios over tcp/ip for all adapter

an export and an import of the current setting is not an option, when installing a new computer i don't kno
the current adapter id'

setting the "NetBIOSOptions" setting in a unattended setup file is not an option either since i need the setting enable
during the install process in order to be able to join a domai

i intend to disable netbios over tcp/ip for all adapters AFTER the unattended installation is done through the impor
of a registry fil

thank
marku
 
B

Bob Qin [MSFT]

Hi Markus,

Thanks for your posting here.

We need to know the interface on clients then change the relevant registry
settings. So you need a script to perform the migration. It would best be
addressed in the Developer newsgroups. I have provided the link below:

<<http://msdn.microsoft.com/newsgroups/default.asp>>

You can also ask for developer support:

http://support.microsoft.com/directory/directory/phonepro.asp?sd=msdn

In fact, you can disable NetBIOS over TCP/IP by using a DHCP server with
Microsoft vendor-specific option code 1, ("Disable NetBIOS over TCP/IP").
Setting this option to a value of 2 disables NBT. For more information
about using this method, refer to the DHCP Server Help file in Windows.

You can also refer to the following article more detailed information.

313314 HOW TO: Disable NetBIOS Over TCP/IP By Using DHCP Server Options
http://support.microsoft.com/?id=313314

Have nice day!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Johan Arwidmark

Here is a simple vbscript the enables netbios on all network adapters.
Save it as filename.vbs and run it...(the first and second row
should be one line (news-agent wraps the lines)


Set objNICs =
GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_NetworkAdapterConfiguration")

For Each objNIC In objNICs
If objNIC.IPEnabled Then
'Enable NetBios
objNIC.SetTcpipNetbios 1
End If
Next

regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net
 
B

Bob Qin [MSFT]

Thanks for your great information sharing, Johan!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

thanks johan !
a better and shorter answer than the MS pos
thanks! now thats a real solutio

markus
 
B

Bob Qin [MSFT]

Hi Markus,

The Win32_NetworkAdapterConfiguration class includes extra properties and
methods that support the management of the TCP/IP protocols. The
SetTcpipNetbios method is used to set the default operation of NetBIOS over
TCP/IP.

SetTcpipNetbios Method of the Win32_NetworkAdapterConfiguration Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
settcpipnetbios_method_in_class_win32_networkadapterconfiguration.asp

More information about the Win32_NetworkAdapterConfiguration class can be
found at :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
win32_networkadapterconfiguration.asp

Thank you again for using our NewsGroup!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top