Can't seem to map network drive automatically in windows 2003

Posted on 2011-04-25
Last Modified: 2012-05-11
This is using a windows 2003 server in AD domain. There is a workgroup server that share out few file shares, and one of the file share named "shareA" are needed to be mapped to this server upon rebooting.

On Windows 2003 server, I logged on as domain admin, and in command prompt, type "net use S: \\workgroupserver\shareA /u:workgroupserverA\userA password /persistent:yes"; to map the drive permanently. But, upon rebooting the system, S: drive not mapped again. Any way to make S: share drive mapped permanently. Remember UserA got the R/W access to the shareA.
Question by:Balack
    LVL 8

    Expert Comment

    If you map the drive through windows explorer is it still disappearing after reboot? (Tools --> Map network drive)

    Do you consider using a batch file on startup as a viable option?
    LVL 26

    Expert Comment

    by:Thomas Zucker-Scharff
    I don't know about win 2003 but on XP pro SP3 I use vSubst to map folders as virtual drives and it persists.

    Author Comment

    Yes, tried to map on windows, and it ends up the same. Use of 3rd party is not an option.
    LVL 8

    Accepted Solution

    open a text file and rename it into .bat
    add the following lines and add it on users startup folder.

    net use /delete S: /yes
    net use s: \\workgroupserver\sharea /u:user password /yes

    Author Closing Comment

    Should work, unless something is get in the way...

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Over the years, I have had the opportunity to work with a sizeable contingent of CIO's, CTO's, VP's, and a variety of other IT professionals to improve their overall communication skills as well as their public speaking, presenting and messaging abi…
    This comprehensive conference-networking guide will help you prep, practice and pack for success, reach out with purpose and confidence, capitalize on connections, and turn all those new leads into long-term connections.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    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…

    729 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

    17 Experts available now in Live!

    Get 1:1 Help Now