Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping a drive via profile in AD

Status
Not open for further replies.

amberlynn

Programmer
Dec 18, 2003
502
CA
Hello,

I need to map drives for different users on PCs that I don't have physical access to.
I've done a bit of research, and think maybe what I need to do is create individual scripts for each user, mapping their drives, and add the script to their profile in Active Directory.

I must be missing a step, or perhaps not understanding where this file should sit.
I have a public share on one of our data servers that I have created a folder - and stored the userName.bat file there.

my userName.bat file looks like:

@echo off
net use o: \\serverName\FolderName


Under the profile tab for this user in Active Directory I've tried a few things, but currently have:
Profile Path: blank
Startup file: \\serverName\Subfolders\username.bat

Nothing happens when I log in - the drive doesn't map.
If I copy the line i have in the startup file, and paste it in My Computer and double click the file, it maps the drive fine, so I know I have the correct location and filename.

Any suggestions?

Thanks!
Amber
 
User logonscripts should be on share \\yourDCname\netlogon

In user's profile tab you should specify only script file name, not full path.

===
Karlis
ECDL; MCSA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top