Link to home
Start Free TrialLog in
Avatar of harris9999
harris9999Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Map Network Drive Automatically for users.

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?
Avatar of Pber
Pber
Flag of Canada image

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
Avatar of harris9999

ASKER

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

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.


ASKER CERTIFIED SOLUTION
Avatar of Sembee
Sembee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial