Mapping does not succeed

Posted on 2008-11-13
Last Modified: 2012-05-05

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!
Question by:vbvb01
    LVL 1

    Expert Comment


    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...

    LVL 7

    Expert Comment

    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
    net use \\computer\folder /user:administrator password.

    Good luck.
    LVL 7

    Expert Comment

    This is to delete the mapped drive.  

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

    Good luck.
    LVL 1

    Author Comment

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

    Anyone another solution?
    LVL 1

    Expert Comment

    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.

    LVL 1

    Author Comment

    "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.
    LVL 1

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( 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…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now