Discussion Locked

Mapping Net drives 4 all users in Win2K

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
On our network we have multiple users that use multiple desks. Up to now I've been logging in to each user on each workstation and mapping all the drives. Isn't there an easier way of doing this? And making it for default users so that when a user logs on that hasn't before they will have access to the same drives??

5 replies

by tamj123

Create a batch file and put in logon script.

example:

net use u: \\domain\user /persistent:NO
net use k: \\domain\share /persistent:NO
net use l: \\domain\document /persistent:NO

if you need detail email me

hope this help

by technomancer

Ok, now what if the share name is something like "office data files", how do you get that to work? I tried using quotes around it like above, but that still didn't work. Also, does the persistent:no mean that it's not a permanent connection? I can'tfind that switch in any of my books on Win2k.

by wburdine

okay I'll answer sort of in reverse order net use has a persistant switch that is under the help section in Win2k here it is quoted.

"/persistent
Controls the use of persistent network
connections. The default is the setting
used last. Deviceless connections are not
persistent.

yes - Saves all connections as they are
made, and restores them at next logon.
no - Does not save the connection being made
or subsequent connections. Existing
connections are restored at the next
logon. Use the /delete switch to remove
persistent connections. "
That answers that.
Now for your other problem. Find a base list of drives that everyone uses and make a list of these. Now the easiest way I can think of is create a logon batch file on the server (assuming WinNT4 its at \\server\logon" that contains all these net use commands (alluser.bat). Then create logon batch files for each user who has more access than those given drives and from in his/her batch place the line CALL alluser.bat. As for long file names to be mapped it has to be done as net use I: "\\server\device"
good luck post again if you need more assistance

by technomancer

Ok, so the "quotes" have to be around the whole thing not just the long dir name. Thanks for the help and I'll give it a try today. It will help those that use one machine occasionally but still need the same drive access as everyone else.

This discussion is closed to new replies.