General discussion

Locked

Login script to map personal drive

By esrfalco ·
We run NT4 (moving to Win2k) servers with some NT4, Win2k, but mostly Win95 clients. I'm not a network guru, but those who are tell me that there is no way to write a generic login script that will automatically map a user's private share. They tellme a script can't read the user's machine name in Win95 (which is the same as their username), and place that in a variable to map to \\servername\<username>$ They tell me we'd need to hand-write a script for each user.

While I'm no MCSE, I find it hard to believe that this is impossible. Please prove me right.

This conversation is currently closed to new comments.

15 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Login script to map personal drive

by tmaclennan In reply to Login script to map perso ...

I'm not an MCSE either, but if you define a home directory for each user under the Profiles setting in User manager, you can include the following line in the login script:
Net Use M: /Home

Collapse -

Login script to map personal drive

by esrfalco In reply to Login script to map perso ...

Thanks, but I was hoping for a generic DOS batchfile line that would grab the login name of a Win95 client and make that a variable to map a private drive (e.g., net use R: \\servername\%loginname%$).

Collapse -

Login script to map personal drive

by jdow In reply to Login script to map perso ...

The net use command has a parameter /HOME that MS says only works with NT but that is not true. Take this example. NET USE H: /HOME /YES, would look at the user accounts' defined home directory (In user manager), and then map appropriately. The only draw back (Which is the same no matter what) is you need to create a share and set permissions for each user directory. (NT does not have the ability to map to a folder that is not a share - Unlike Netware).

Jason

Collapse -

Login script to map personal drive

by esrfalco In reply to Login script to map perso ...

Thanks, but I was hoping for a generic DOS batchfile line that would grab the login name of a Win95 client and make that a variable to map a private drive (e.g., net use R: \\servername\%loginname%$).

Collapse -

Login script to map personal drive

by avachon In reply to Login script to map perso ...

Hi, if you want to use only a simple logon script using the net use command, then your friends are right. The %username% variable works with nt workstations. However, you may want to look into perl or wsh (windows scripting host).

Collapse -

Login script to map personal drive

by esrfalco In reply to Login script to map perso ...

Poster rated this answer

Collapse -

Login script to map personal drive

by jason.barnett In reply to Login script to map perso ...

I am not sure of the environment variable set in Windows '95. I do know that under NT4 if you use the following:

net use k: \\server1\%username%$ you will have a drive mapped to the hidden username share.

if this does not work in '95, why notset the home directory variable in the profile settings of the user account in user manager? the only limitation to this is that you can't user %username%$ in this field, you can only use %username%

hope this helps.

Collapse -

Login script to map personal drive

by esrfalco In reply to Login script to map perso ...

Thanks, but I was hoping for a generic DOS batchfile line that would grab the login name of a Win95 client and make that a variable to map a private drive (e.g., net use R: \\servername\%loginname%$).

Collapse -

Login script to map personal drive

by rraheb In reply to Login script to map perso ...

You don't have to do it through a logon script. I don't think that there is a generic login script that can does this job for you.

Here is what you can do :
-------------------------

You'll have to do this setup once for all of your existing users and then for new users make sure that it is done whenever the user is created.

From the user manager for domains, select the user and then set the path & drive assignment for his home folder. It will automatically be mapped when the user logs in without the need for a script.

Hope this helps you out.

Rafik El-Raheb.

Collapse -

Login script to map personal drive

by esrfalco In reply to Login script to map perso ...

Poster rated this answer

Back to Windows Forum
15 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums