Windows

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

General discussion

Locked

Mapping drive to user directory

By kclouie ·
Does anybody know the proper way to write a login script so that the user's home directory is maped to a drive letter. I only know how to map to the user directory. With hundreds of user directory folders to scroll through, the user becomes frustrated and I don't want the users to access the user directory, just their specific home directory.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Mapping drive to user directory

by mrbjh In reply to Mapping drive to user dir ...

use the "net use" command

eg C>net use h: //server/share

Collapse -

Mapping drive to user directory

by kclouie In reply to Mapping drive to user dir ...

The question was auto-closed by TechRepublic

Collapse -

Mapping drive to user directory

by RMmcp In reply to Mapping drive to user dir ...

Want to hide it. Add the $ sign to the share name of the "user data" directory. Then for each user assign a home drive and letter in "User Manager for Domains". When they logon, they'll have that home drive, but will not be able to see the entire share. The only way to get to it is know the specific name. They can't just browse to it. Or, you can assign permissions to each user's share folder to that specific user. That would be a tedious load.

Collapse -

Mapping drive to user directory

by kclouie In reply to Mapping drive to user dir ...

The question was auto-closed by TechRepublic

Collapse -

Mapping drive to user directory

by mrochr In reply to Mapping drive to user dir ...

Ok all those options are viable but a real pain in the tail. Trust me I just did this last week 400 users and sharing then mapping is ridiculous. All you have to get is rootuse (command) and copy to machines with this script. Here is the scripts that you will need and they work great.
@echo off
net use z: \\server\rootuse$ /persistent:no
copy z:\rootuse.exe c:\*.*
net use y: \\server\timeserv$ /persistent:no
copy y:\timeserv.exe C:\winnt\system32\*.*
copy y:\timeserv.ini C:\winnt\*.*
copy y:\timeserv.dll C:\winnt\system32\*.*
net use x: \\server\sleep$ /persistent:no
copy x:\sleep.exe C:\winnt\*.*
net use u: \\sdc003\sssinfo$ /persistent:no
copy u:\sysinfo.scr C:\winnt\system32\*.*
(also in here is timesever if you dont want to give users permissions to change time)

@echo off
C:\rootuse h: /d sleep 1
C:\rootuse h: \\server\home\%username%
sleep 1
net use p: /d /y
I used this in my other job for 2yrs no problems.

Rick MCSE
CBH IT Manager

Collapse -

Mapping drive to user directory

by kclouie In reply to Mapping drive to user dir ...

The question was auto-closed by TechRepublic

Collapse -

Mapping drive to user directory

by kclouie In reply to Mapping drive to user dir ...

This question was auto closed due to inactivity

Related Discussions

Related Forums