Auto-map network drives on logon to SBS 2003 domain

Posted on 2009-04-29
Medium Priority
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
  • 2
  • 2
LVL 97

Accepted Solution

Lee W, MVP earned 1400 total points
ID: 24266843
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

Author Comment

ID: 24266868
whats does /p:n mean?

Expert Comment

ID: 24266879
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.

Assisted Solution

ccosby earned 600 total points
ID: 24266886
/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 97

Expert Comment

by:Lee W, MVP
ID: 24266980
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A look at what happened in the Verizon cloud breach.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

809 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