Solved

Map Network Drive Automatically for users.

Posted on 2006-07-06
4
329 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
An article on effective troubleshooting
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

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