Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Map Network Drive Automatically for users.

Posted on 2006-07-06
4
330 Views
Last Modified: 2010-03-18
Hi,

On windows server 2003, there is a shared folder which certain users need access to.  I could go around each machine individually and map the network drive, but was wondering is it possible to do this simply from the server so that when each of the users log on next they are automaticaly mapped to the shared folder?
0
Comment
Question by:harris9999
  • 2
4 Comments
 
LVL 26

Expert Comment

by:Pber
ID: 17052216
Is the server a domain controller?  If so there are multiple ways of doing it.

You can use logon scripts to map a drive
You can you GPO logon scripts to map a drive
you can edit the profiles of the users to have a home folder
0
 
LVL 3

Author Comment

by:harris9999
ID: 17052263
Hi,

yes domain controller,
profiles of users already have a home folder,
Only other option be a script which i haven't a clue about.
So it looks like just mapping each one individually

0
 
LVL 26

Expert Comment

by:Pber
ID: 17052345
The domain controller will have a share called netlogon.

Make a batch file with the following in it:

@echo off
cscript %logonserver%\netlogon\drives.vbs

Save it as logon.bat and place it in the netlogon folder

Make a vbs script with the following it:

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "F:" , "\\server\share"
'Change the F: to match the drive you wish and the \\server\share to match your share.

Save it as drive.vbs and place it in the netlogon folder.

Next go to profile of user in the same area as you defined the home folder and assign a logon script of: logon.bat

This should get you going.
Let me know how it works.


0
 
LVL 104

Accepted Solution

by:
Sembee earned 500 total points
ID: 17052797
You could make a login script even easier than that.

create a new file called logon.bat and put it in c:\WINDOWS\SYSVOL\sysvol\<your domain>\scripts on the domain controller.

In the file enter:

net use t: \\servername\sharename

replace t: with the drive letter
replace servername with the name of the server
replace sharename with the name of the share.

As you are using Windows 2003, you can select all the user accounts in ADUC at once and then enter just login.bat - not the full path or anything like that.

I have more on creating login scripts on my web site at http://www.amset.info/loginscripts/ 

Simon.
0

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

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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