Mapping does not succeed

Hello,

Since a couple of weeks we have the problem that some of our mappings do not work.
We make a couple of mappings during a user's logon and use these statements:
net use f: \\applicatie\programs
net use g: \\data\data
net use h: \\archief\masters

and so on

Five of the seven mappings succeed - they map to two different servers. The two that don't succeed have to map to the so called storage server. Just an ordinary server - nothing special. But over and over again the mappings don't succeed. If, however, after a couple of minutes the user starts a little batch we made with just these two mappings in it, the mappings appear (of course instead of that mapping te drives manually works too). The next time a user logs on they've disappeared however, even if we use the /persistent:yes statement. Another workaround (in the mapping.bat: insert a delay of 30 seconds before mapping to the two drives) did not help either.
What can be the cause of this?
Any help would be appreciated!
LVL 1
vbvb01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BrattisCommented:
Hi!

I'm having the same issues. Windows explorer do not show the mapping, thought, ex. Excel->File->Open dialog show the mapped drive. Disconnect and connect will show the drive in Windows Explorer. Think this is a sweet Bug in Winserver2003/XP, This has never happend on Vista for me.

Any tricks will be helpful for me to...

/Brattis
0
pr0t0c0l12Commented:
You might need to be carefull when windows maps drives.  If you are trying to use or map a drive and you don't put the right credentials, you might get stock with the first try you made to map the drive.  It will be better to map a drive and parse the credentials information so the mapping happens with certaing credentials and not with the ones you are intending to use.

To un-map or disconnect erroneous credentials:

tools-->disconnect network drives. // This will give you a list of the drives you have mapped. Disconnect and start from scratch.  

To map a drive with credenatials use:

net use \\computer\folder /user:administrator domain\password
or
net use \\computer\folder /user:administrator password.

Good luck.
0
pr0t0c0l12Commented:
This is to delete the mapped drive.  

net use [DRIVE]: \\[PATH]\ /DELETE

Good luck.
0
Introducing the "443 Security Simplified" Podcast

This new podcast puts you inside the minds of leading white-hat hackers and security researchers. Hosts Marc Laliberte and Corey Nachreiner turn complex security concepts into easily understood and actionable insights on the latest cyber security headlines and trends.

vbvb01Author Commented:
Thanks for your reply, but sorry, the net use \\computer\folder /user:administrator password solution does not work.

Anyone another solution?
0
aballerasCommented:
Hi vbv01

Just to clarify your, your problem is, you cannot map to one server using batch files but it works when you use net use manually?

Can you make sure that the net logon service in the server is not disabled and set to manual?

good luck.

0
vbvb01Author Commented:
"Just to clarify your, your problem is, you cannot map to one server using batch files but it works when you use net use manually?"

The problem with this one server is that the mapping-code in the initial (logon) batch does not work. When a user starts a little batch (in which only the two mappings involved are programmed) later on it does work. So it's not a batch-problem or a matter of using the wrong string.

The Netlogon Service is enabled on the server involved.

Another suggestion would be appreciated.
0
vbvb01Author Commented:
Problem solved!

We have two domain controllers and the replication of the netlogon between those two did not work anymore. Therefor it happened that the changes I made in the mapping batch weren't copied to the other netlogon folder. And because our network apparantly favors our second server more than the first one most users didn't read the right batch.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.