Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[Resolved]NetBIOS disabled (Unattend.xml)but enablled on HW - Why?


  • Please log in to reply
10 replies to this topic

#1
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I use this code in my Unattend.xml file to disable NetBIOS:
<Interface wcm:action="add">

                    <NetbiosOptions>2</NetbiosOptions>				

                    <Identifier>Local Area Connection</Identifier>

                </Interface>
When the ISO is installed on a VM (VMware Player) NetBIOS is disabled. But when I install the same system on my HW, NetBIOS becomes enabled again. This occurs both to a desk top and laptop. The DT runs the VM system and I was thinking it was doing the enable. The laptop does not run VMware but does use WiFi. I don't seem to be able to get any traction via searching. I also run FileZilla client on both systems and FileZilla server on the LT. Can anyone tell me what is enabling NetBIOS and why? Thanks and enjoy, John.

Edited by johnhc, 15 February 2013 - 02:17 PM.



How to remove advertisement from MSFN

#2
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,161 posts
  • OS:none specified
  • Country: Country Flag
:huh:
http://technet.micro...4(v=ws.10).aspx
Is this what's found in the VM for your LAN/NIC?
Local Area Connection

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#3
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks, submix8c. Yes "Local Area Connection" (without the quotes) is the name of the NIC. I use the netsh command from a batch file via FirstLogonCommands to change the name, so the new name is what ends up for the NIC name. Remember this all seems to work under VM but not the HW. The only real difference is that I don't usually install security SW (CIS, Comodo Internet Security) on VM. I will do that tomorrow and see if that makes a difference. Thanks and enjoy, John.

#4
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I installed Comodo and the NetBIOS is still disabled. Any ides what may be setting it back to default? Thanks and enjoy, John.

#5
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,672 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

It may be the driver for the NIC. :unsure:
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#6
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks, Tripredacus, great candidate and explains the VM/HW discrepancy. In looking for a way to do this through a command prompt, I found this.
wmic nicconfig where index=7 call SetTcpipNetbios 2
It depends on knowing the index number which is 7 right now but may not be true on my next install. Do you have any ideas? Thanks and enjoy, John.

EDIT: Just found this:
NETSH  RAS  IP  SET  BROADCASTNAMERESOLUTION DISABLED
Would this apply to all adapters?

EDIT: The netsh command does not work on my VM system.

EDIT: The netsh command may be server only. Here is a good link to a thread on disabling NetBIOS.

EDIT:WMIC command can also be used via MAC address:
wmic nicconfig where macaddress="00:0C:29:44:7A:ED" call SetTcpipNetbios 2

Edited by johnhc, 28 January 2013 - 07:29 PM.


#7
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,672 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

EDIT:WMIC command can also be used via MAC address:

wmic nicconfig where macaddress="00:0C:29:44:7A:ED" call SetTcpipNetbios 2


Yes, its fortunate that WMIC commands are kinda like SQL queries. I would recommend you try using the WMI Tools (specifically the Object Browser) to find some value to search for to use in your command. Tools are here:
http://www.microsoft...s.aspx?id=24045

I had to do something similar to detect fingerprint sensors... Also, you can use a "like" instead of "where" to find a partial match. That may be helpful in MAC Addresses, since you could specify just the first 2-3 octets. Here is an example, not as a wmic command, but I'm pretty sure you can still use "like"

SELECT * FROM Win32_PnPEntity WHERE Name LIKE '%Fingerprint%'

MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#8
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,161 posts
  • OS:none specified
  • Country: Country Flag
Not necessarily OT (re - "NETSH")... Should be there?
Got curious and google'd
netsh "windows 7"
New NETSH Commands. Or... maybe last link is erroneous? (says Win2k8). This one also says Win2k8?

DUH! This says "Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista", so... :huh: :unsure: "VM"???

Definitely OT but may be useful (from the google search)
http://www.practical...ith_windows.htm

Not intending to confuse the issue, just checking/confirming...
Because planning on Win7 "Soon!" "How soon?" "Real soon..."

addendum - DOH! Maybe it's due to the VM vs Real Machine? (see Virtual Wireless OT link above)? Could be some kind of conflicts between them (same MAC, right?).

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#9
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
submix8c, thanks, but I guess I am obtuse - what is OT? My VM (VMware Player) does not have a wireless NIC and I suspect the problem is not the VM, but possibly the HW NIC driver install as Tripredacus suggested. I too found references to the netsh commands applying to W7, but it did not work.

Tripredacus, fortunately I have only two machine with a total of four NICs. I know the MAC addresses and can use them with the wmic command to hopefully get the correct results. I will need to test on HW, so it may be awhile. I hope to remember to post the results here.

Thanks Tripredacus and submix8c for your help. Enjoy, John.

EDIT: Bad news. The 'wmic nicconfig where macaddress="00:0C:29:44:7A:ED" call SetTcpipNetbios 2' command fails with a RC of 84 if there is no connection(media).

Edited by johnhc, 29 January 2013 - 04:43 PM.


#10
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I have found what I think are the relavent keys and, at least, a manual method of disabling NetBIOS. The key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards
has one or more subkeys with names like 8 and 14 (ie, small integers). In each of these keys is the value "ServiceName" containing a GUID. The key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces\
when concatenated with "Tcpip_" concatenated with the GUID locates the value "NetbiosOptions". This value can be set to change the status of NetBIOS for that NIC. A quick look in the Registry should make this clearer. Manually this works fine. Any comments would be appreciated, especially if this will not work. Thanks and enjoy, John.

#11
johnhc

johnhc

    MSFN Junkie

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,362 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Using the technique outlined above during install on HW does work.
Thanks, Tripredacus, it must have been the driver.
Enjoy, John.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN