Link to home
Start Free TrialLog in
Avatar of snapperhead
snapperhead

asked on

net use mapping only works sometimes

I have a batch file called abc.bat in my netlogon directory. The file has one line in it:

NET USE H: \\server1\SHARED

I am trying to map everyone who logs in to this directory. The problem is that it only works sometimes. Someone may log in once and get the mapping and the next time they log in, it doesn't happen. It seems to not work more than it does work. People only get mapped about 30% of the time.

any suggestions?
Avatar of snapperhead
snapperhead

ASKER

Oh, sorry. The server is NT 4.0 and the users are all using win95b.
Are your users being authenticated by a PDC and a BDC? If so has the netlogon directory replicated properly?
If the batch file is run manually by clicking on it after they log in, it works 100% of the time.
mmanning,

They are being authenticated on the PDC. The file is also on the PDC itself.


I've noticed from my experience that batch scripts run in a different way before and after "explorer.exe" is loaded in Windows '95. For example, try putting in your script something like this:

 net use y: /home /y

 explorer "y:\"

 If you run this manually, works just fine, but if it's run as a login script, it will say it cannot find "y:\". If you change the line to

 explorer y:

 It works. Did you get the feeling?

 By the way, I'd recommend you to always add the /y (yes) parameter to net use. This way if there's a mapping to that letter already it will be overwritten and the user gets no prompt asking about what to do.

 I believe Windows '98 handles login scripts way better. You could give it a try if you can.
Is a common problem, if you want run a stronger scripts you can download Kixtart, is easy and works fine, download from www.kixtart.to/script its free...
Thanks for the comments,

EatEm,
If I add the /y it still works the same way. Windows98 is not an option. We have 450 users all running win95.

Xces,
How would kixstart affect the log in script? Is it client based or server based and how would it affect the mapping of a client if it is run on the server? I checked it out and all I can see is that if you run it on your NT server it will start and run programs and batch files on that machine. It doesn't seem to have any effect on the clients' machines.





You would create a batch file to kick (kixtart) off your login script, you would then place this batch file name into the logon script field in the profile properties for all of your users in User Manager for Domains. The batch file would contain text similar to - "@echo off
%0\..\kix32.exe kixtart.kix" kix32 calls the kixtart.kix file which would contain the command "net use h: \\serve\share". The beauty of kix is that it will allow you to be way more flexible with your scripting than normal batch files would and it's free.
The "/y" option only makes sure the map will be done in case there was another path mapped to that device letter. Sometimes this is why mappings aren't done.

 By the way, which device letter are you trying to map? Its not Z:, right? If so, avoid Z:. That letter is known to cause problems on login scripts.

 Good luck!
By the way, are other mappings such as the home directory working? Try

 net use x: /home /y

 Later...
mmanning98 did explain it, you create a batch file that call kix32 and a one file .kix where you program the script, in these file you can say, for example
use h: \\myserver\myhome, if you want an script example I can send you one, simple but effective....post your email and I'll send you the file and a short explain of how kixtart works.

Greetings
Avatar of Tim Holman
Does your login script map the Z drive ?
If so, it shouldn't, as Win 95 needs this for NETLOGON.
Please check replication - is it working ?
Replication shouldn't be a concern if you have a single NT Server.
ASKER CERTIFIED SOLUTION
Avatar of jasonepperly
jasonepperly

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmmm... The old licensing problem. It's quite annoying if you run Exchange Server and your Microsoft Outlook users want to access their shared Calendar... Yuck!!