Auto-map network drives on logon to SBS 2003 domain

Posted on 2009-04-29
Last Modified: 2012-05-06

I run a SBS 2003 domain and I would like all workstationswhen logging on to automatically map 2 network drives.

How do I achieve this?
Question by:hubfub
    LVL 95

    Accepted Solution

    Add the following the two lines to your SBS_LOGIN_SCRIPT.bat (using Notepad).  the file can be found in c:\WINDOWS\SYSVOL\sysvol\<domain name>\scripts\SBS_LOGIN_SCRIPT.bat - changing the obvious SERVER to the name of your server, drive letter to whatever drive letter you want to use, and the ShareName to whatever your share name(s) are.  

    NET USE X: \\SERVER\ShareName /p:n
    NET USE Y: \\SERVER\Share2Name /p:n
    LVL 1

    Author Comment

    whats does /p:n mean?
    LVL 6

    Expert Comment

    What Leew said is correct although depending on how you added the users to the domain they might not have the script setup under their account. If any users don't accecpt the change under the active directory you can click on the user and go to properties. Under the profile tap it list the users logon script. You might have to add it in(if you created the users with the sbs console it should be done for you).

    You can also setup different paths for different users useing differnet script files. You just need to make another bat file in the same directory as above and use the same strings.
    LVL 6

    Assisted Solution

    /PERSISTENT:{yes | no} : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /DELETE to remove persistent connections.

    More info on netuse.
    LVL 95

    Expert Comment

    by:Lee W, MVP
    You should ONLY be adding users through the wizards - you are BREAKING SBS if you don't.  So if you're adding things correctly, the login script WILL be there.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
    Learn about cloud computing and its benefits for small business owners.
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    755 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

    24 Experts available now in Live!

    Get 1:1 Help Now