Solved

Create a script for windows XP that will enable NetBios over TCP/IP

Posted on 2011-09-02
3
749 Views
Last Modified: 2012-05-12
Hi team,

I keep on having a problem with one of my users laptop. Every time is rebooted the NetBios over TCP/IP option gets set to disable and the user can't access any network drives or printers. I can't really figure out whats going on and this user is out of the country so it would be hard for me to rebuild the computer. I was thinking to create a logon script that will enable netbios over TCP/IP every time this user logs in. Can some one help me create this script.

Thank you
0
Comment
Question by:exTechnology
  • 2
3 Comments
 
LVL 51

Expert Comment

by:Bill Prew
Comment Utility
I have never done this myself, but here are a few links to scripts that you may be able to modify to meet your need. Naturally the Netbios protocol files need to already be installed on the computer. And I also got the impression in these pages that a reboot is likely needed after these changes, so doubt you can just turn it on during boot up and it will work for that session. But you will need to test that further.

http://social.technet.microsoft.com/Forums/en/winservercore/thread/d18bd172-e1a0-4a61-ba52-0952a1e3cabc

http://technet.microsoft.com/en-us/library/ee692589.aspx

http://241931348f64b1d1.wordpress.com/2010/04/21/how-to-disable-netbios-via-command-line-on-windows/

http://wpkg.org/Enable/disable_NetBIOS_over_TCP/IP

Sorry I can't be of more help, but am interested how you make out.

~bp
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 125 total points
Comment Utility
I include both Options (2 is disabled), 0 is Default, 1 is Enabled.... Just in case... 1 of them will report "no instances" if it was not the proper setting for that particular line.... Perfectly normal....
@echo off
wmic /interactive:off nicconfig where TcpipNetbiosOptions=2 call SetTcpipNetbios 1
wmic /interactive:off nicconfig where TcpipNetbiosOptions=0 call SetTcpipNetbios 1
exit

Open in new window

0
 
LVL 66

Expert Comment

by:johnb6767
Comment Utility
And FYI, no reboot needed, should take immediate effect. Disable 1 manually, and run the top one, and it go back in to verify....
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now