Solved

Not Mapping Drives in Login script

Posted on 2002-05-30
20
311 Views
Last Modified: 2010-04-13
We are running a windows 2000 domain. Our windows 98 machines are mapping shared drives just fine when they login. But, some (not all) of our windows 2000 pro and Windows XP pro machines are not mapping drives through the login script.The only Drive they map is the home drive. I can however map the share drives manually afterwards.
Any reason why??

Thanks
0
Comment
Question by:bdragun
  • 5
  • 5
  • 4
  • +3
20 Comments
 
LVL 7

Expert Comment

by:jatcan
ID: 7044631
Has the drive mappings EVER worked on these mahcines?
0
 
LVL 1

Author Comment

by:bdragun
ID: 7044642
Actually we just migrated from Novell. But yes they have worked before.
0
 

Expert Comment

by:Kehama
ID: 7046432
Could you give us the output of a "net use" command of an affected machine, and give use the exact command line you're trying to use in the logon script (I'm assuming you are mapping the drives by logonscript)

Also, there should be some kind of error message when you attempt the drivemapping. That'd be useful too.
0
 
LVL 1

Author Comment

by:bdragun
ID: 7046863
The windows 2000 and XP machines are not even running the login script at all. We put the .bat file in the Netlogon folder on our DC and put the name of the .bat file in the users profile. The following is a sample of one of the drive mappings:

IF "%OS%"=="Windows_NT" GOTO NT

:98
If exist Q:\ NET USE Q: /D

NET USE Q: \\server\apps

:NT
If exist Q:\ NET USE Q: /D

NET USE Q: \\server\apps

As i said before windows 98 machines run the script fine. We are even able to map Home drives on windows 2000/XP machines using the users profile in active directory.
0
 

Expert Comment

by:Kehama
ID: 7046945
Hmmm. If it is only upgraded computers that have this behaviour, check your network properties. I assume you use TCP/IP for network communication, I would suggest disabling other protocols that got left over with the migration and see if that helps. I'm suggesting this because NetBUIE used to do evil things to my network.

Also, check if the computernames do not have spaces in them. That used to cause trouble in the past for macintosh clients for me.
0
 
LVL 1

Author Comment

by:bdragun
ID: 7046967
We removed all the IPX and netbuie protocols when we removed the Novell client. And none of our computer names have spaces in them.

After i login to a win2k/XP machine i can double click the .bat file and it maps the share drives fine. i could put the .bat file in the startup menu but i would like to avoid this.
0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 7046970
Try keeping your scripts as simple as possible. Create one with just this in it and see if it works.

NET USE Q: /D
NET USE Q: \\server\apps

You don't need all of the extra commands in there because all that junk is saying is that 1.) Delete any map on Q and then 2.) Map Q to this.

TooKoolKris
MCSE+I, CCNA, A+
0
 

Expert Comment

by:Kehama
ID: 7046987
Understandable you don't want to do that.

Did you upgrade your Domain Controller to 2000 as well recently ? That moves about the folder that is shared as \\server\netlogon. Although I can't imagine why some of your clients would search for the actual (old) folder instead of that share, it is the only explanation I can think of (maybe a leftover from Novell).

0
 

Expert Comment

by:Kehama
ID: 7046995
TooKoolKris,

I don't think it is the logon script itself that is faulty. Those computers are somehow just not finding the scripts...
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 7

Expert Comment

by:jatcan
ID: 7047008
Yes, you don't think the .bat files are faulty, but have you actually tried the suggestion? I only takes a second to rename a bat, create a new one and try it...
0
 
LVL 7

Expert Comment

by:jatcan
ID: 7047033
Try these QArticles:

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q302104


Maybe they're logging on locally?

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q258286

Maybe you need to deny access UNLESS the script runs, just to see what happens...

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q275506

And an article that says DO NOT define command line parameters in logon script(silly, I know):

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q142672

Hope one helps you out...Cheers!


0
 

Expert Comment

by:Kehama
ID: 7047046
In WinNT, logon scripts are kept in :
   \\<servername>\winnt\system32\repl\export\scripts
   \\<servername>\winnt\system32\repl\import\scripts

In Win2000, my logon scripts are located in :
   \\<servername>\winnt\sysvol\sysvol\<domainname>\scripts

BUT, my server still has the old WinNT directory (which is filled with old scripts - I only discovered them now, hihi). If I'm right and some of your computers are searching another location for the scripts, you should find a solution by copying logon scripts to both locations, and then you're just left to find out how to get all workstations to look for the script in the right location.

Have a jolly nice weekend.
0
 
LVL 1

Author Comment

by:bdragun
ID: 7047065
The domain controller has been in place for about a year now cause we were running dual Network OS's. It was not an upgrade but a new DC install.  

We are trying all the suggestions. It seems that we are getting it to pull the login script sometimes but not always.

TooKoolKris method seems to work one time. When i reboot and try it again it doesn't work. Then when we reboot and try ita third time it works.

0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 7047104
How many DC's do you have in this domain? It seems that the server is getting banged and can't handle all of the requests. You may need to add another DC like having a BDC in the old NT4 era. Normally something like this either works or it doesn't, so it sounds like congestion or communication problems of some sort.

TooKoolKris
MCSE+I, CCNA, A+
0
 
LVL 6

Expert Comment

by:st_steve
ID: 7048300
All the comments sound interesting. I faced the same problem 2 days ago. A machine wouldn't map the drives properly on startup but would access the network manually. Changed the network card on the machine. Lo and behold! Drives were being mapped on startup!

Might I suggest a new network card?
0
 
LVL 1

Expert Comment

by:igore
ID: 7048575
I have seen this happen when the default path for the logon script is inaccessible, such as when it is a network drive that doesn't exist.  Try adding C:\ or C: as the first line of your logon script (or whatever the name of your system drive is).
0
 
LVL 1

Accepted Solution

by:
bdragun earned 0 total points
ID: 7050891
I did some research on Microsoft's website and i found this article over the weekend.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304970

By changing the login scripts synchronously and enabling the group policy setting "Always wait for the network at computer startup and logon". So far we have success with every drive mapping..

0
 
LVL 6

Expert Comment

by:st_steve
ID: 7050925
Contact the site moderator and you might be able to get some of your points back.
0
 
LVL 7

Expert Comment

by:jatcan
ID: 7051404
Yes and thank you for the answer...hehehehheh...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

12 Experts available now in Live!

Get 1:1 Help Now