Solved

Map Network Drive Automatically for users.

Posted on 2006-07-06
4
333 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
[X]
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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Resolve DNS query failed errors for Exchange
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

630 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