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

Basic logon script question

Status
Not open for further replies.

htoth

MIS
Jan 25, 2001
22
US
I need to map users to a common shared folder so that they have a drive letter mapping to this folder. NT scripts are new to me. How do I do this? Thanks!
 

If you want to map to the users home directory:
net use u: /home

If you want to unmap a drive on log in:
net use /delete e:

net use e: \\ServerName\ShareName


Rob
 
Another command you can use is "subst", which will map to a specific directory in a share. So if you had a share called "Department" but within that share you wanted a "Manager" folder, "Employee" folder, and an "Everyone" folder, but you didn't want anyone to see the other folders through the mapping, then you could use subst. Example (the ? represents your drive map letter)

Manager drive map -

subst x: \\servername\department\manager

Employee drive map -

subst x: \\servername\department\employee

Everyone drive map -

subst y: \\servername\department\everyone

There is a command in the NT Server resource kit that you can run to see who is in what group, and that would allow the login script to "decide" whether or not to give that person a particular drive mapping.

I don't know if subst works with Win95, I can't remember, but I know it works with 98 and NT WS. If Win95 doesn't have that command, as a test, put it in your NetLogon share and see if the Win95 machines will run it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top