Jump to content

Recommended Posts

Posted

I need to figure out how to change the 'NetBIOS setting' under the properties of TCP/IP of my network adapter > Advanced > WINS

For some reason this is set to 'Disable NetBIOS over TCP/IP', which causes network browsing not to work.

Thanks!


Posted

Ah thx.. I wasnt really planning on getting my question answered in that thread as it pertained to about 3 other topics... figured Id start a new one as I hadnt found it discussed anywhere else...

Admin: feel free to delete either post...

Thanks again!

Posted

I baked this one to unbind NetBios but you can use it to bind it

*Tested on a single nic workstation* with Xp

@echo off & setlocal ENABLEEXTENSIONS
:: Need Reg.exe and Regfind.exe (from MS toolkit)
::
:: DelayedExpansion for Command Processor must be enable before running this batch in a different dosbox
:: REG ADD "HKCU\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 00000001 /f
::
:: Adjust connName to your Connexion Name
:: Caution for french user, edit this file with dos editor for "é"
set connName="Lan Connexion"
::
set file=%random%%computername%
set "netbt=HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_"
set "netbt2=HKLM\SYSTEM\ControlSet001\Services\NetBT\Parameters\Interfaces\Tcpip_"
set "lines=2"
set i=-1
set "ok="
set "key="
::
regfind -i 0 -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318} %connName% >%file%.txt
::
for /f "delims=" %%a in ('more ^<%file%.txt') do (
set/a i+=1 & for /f %%z in ('echo/%%i%%') do (
 if "%%z"=="%lines%" set ok=1
 )
 if not defined ok set key=%%a
 )
::
REG QUERY %netbt%%key% /v NetbiosOptions
if errorlevel 1 goto Errmsg
::
:: Dword 1 to bind and 2 to unbind Netbios
REG ADD %netbt%%key% /v NetbiosOptions /t REG_DWORD /d 00000001 /f
REG ADD %netbt2%%key% /v NetbiosOptions /t REG_DWORD /d 00000001 /f
goto end
::
:Errmsg
Echo Unable to find %connName% as your Connexion Name
:end
del .\%file%.txt

Enjoy !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...