Drive mapping won't stick with script

Posted on 2009-04-30
Last Modified: 2012-08-14
This question is about two new XP boxes in a Workgroup environment. I have a very simple batch file in the Startup folder that maps a drive letter. The problem is that when the user logs in, the drive is not mapped. However, if I wait till the login process completes, and then run the startup.bat file manually, everything works.

I'm not too accustomed to working without my DC group policies, and my gut feel is that this is a function of these being very fast computers and running the scripts before all the other stuff is ready. I could probably add a /persistent switch, but I think that would just mask the underlying problem.

Suggestions? Thanks in advance.
net use M: /delete

net use M: \\computername\sharename

Open in new window

Question by:ovidbailey
    LVL 25

    Accepted Solution

    I use the


    and have no problems doing this from the startup folder
    LVL 20

    Expert Comment

    Yes, this is correct.  Use SStory's suggestion.

    Author Closing Comment

    Thanks, guy!
    LVL 25

    Expert Comment

    You are welcome!

    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.

    This article was inspired by a question here at Experts Exchange ( The requirements stated in that question are (1) reduce the file size of a large number of…
    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 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

    16 Experts available now in Live!

    Get 1:1 Help Now