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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping drive to users home Directory

Status
Not open for further replies.

hdeassis

MIS
Oct 24, 2000
178
US
I would like to know if there is any way to map a drive letter directly to the users home drive. Currently I have a share:\\srvname\Home\usernames. The home folder is shared and users map the H: drive to that location and then they have to browse and look for their own personal directory.

Any way I can just have a mapping direclty to the root of their home directory?


Thanks
H
 
Hi H,

A possibility is to define a share for each user that will point to the directory of the user. Then change the profil in USRMGR to connect to the share.

Not recommend for a large domain.

Good luck

Marc
 
You can also run the SUBST command to redirect a drive letter to a folder, running it in the Startup folder.
 
What you need is a log on script. This runs everytime the user logs on and maps the correct drive everytime.
 
I share each users home directory out with the username as the share name, then restrict the access to only that user.

Within user manager, in the Profiles \ Home Directory section, I use the connect h: to \\servername\username$, so all users map an H: drive to their own directory.

 
In User Manager for Domains goto the user's profile, make the user home drive connect to \\servername\username$. Assignt a drive letter.
Share the users home drive as "username$" - this hides the mapping from the browse lists (good for perfomance). Administrators FC, Userernam = C
An abbreviated logon script w/home drive mappings:
<snip>
if Windows_NT==%OS% goto ntonly

net use f: /d /y
net use f: /home
goto end

:ntonly

net use f: /home

:end
<snip>

The first mapping is for 95 clients. The /d /y - deletes any previous mappings. The /home grabs the value from the User Profile in User Manager for Domains. Make sure the drive letter in &quot;net use f: /home&quot; matches the drive letter in the User Profile.

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top