Auto-map network drives on logon to SBS 2003 domain


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?
Who is Participating?
Lee W, MVPTechnology and Business Process AdvisorCommented:
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
hubfubAuthor Commented:
whats does /p:n mean?
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.
/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.
Lee W, MVPTechnology and Business Process AdvisorCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.