Discussion Locked

Log in script drive mapping

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I map users to a network drive directly to their folder and so they cannot see other users folders?

9 replies

by tony

If you are referring to home folders then this may help.

If you have a server, with home folders shared (or not) you can youe one the following examples.

If you have shared home folders i.e
\\server1\user1

then in a logon script you can use the following line in the script (do not use the quotes '' however)

'net use z: \\server1\%username%'

There is another way, if you have a single shared folder, with users folders inside - ie

\\server1\user-shares\

Then you can use the following in a script to map home folders
(again no quotes '')

'net use z: \\server1\user-shares\%username%'

If that does not make sense, drop me an email.

Tony

by timber

One other common way.. I will assume you currently have a path something like d:\users\(user dirs) on the server.

Share each user folder as username$ that will create a hidden share so all other users will not be able to see the directories. Open user manager select profiles under home directory select connect pick a drive letter, and add the following \\servername\username$.

NT really has no other good way to make all directories not visible to other users unless you do it by hand like I described.

HTH,
Chad

Net Use (Driveletter) \\

by david.rowlett

We have a folder on a server called 'users'. Within this folder is a sub-folder with the exact users login name. These sub folders are then shared as hidden shares in the form 'username$'. Permissions are then set for the required user and domain admins only.

To map the share we simply use the following:-

net use \\servername\%username%$

The advantage is that the share is not seen when browsing the network.

One drawback we have discovered is that this can be a bit of an admin overhead if you have a lot of users.

Feel free to email me if you would like to discuss further.

by starr.p

The answer worked well for all WIN9x machines but we cannot get 2K and XP machines to map correctly.

This discussion is closed to new replies.