Question Locked

Map Network Drive From Server 2003

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi!. I have 24 users, I need to map a network drive to each of them. Is it possible to do it from the server 2003 active directory instead of going to each PC? Or if there is any script to do it I will appreciate. I know they are few users but if I need to do it time to time I believe it's good idea to get done from the server. Thank you in advance

6 replies

by rob miners

you need is a logon script. It will map the drives for your users.EG logon.bat and the contents.

@echo off
net use S: \\"fileserver"\"share"

by ndumbalo

that I can use the script, thank you for it. Is there one for disconnecting network drive? Thanks.

by jzower

Yes, in the same script, you can delete the drive(s) first and then map the new drive(s) you want
---------------------------
@echo off

NET USE G: /delete
NET USE S: /delete
NET USE Y: /delete
NET USE Z: /delete
NET USE P: \\server.domain.com\projects
NET USE S: \\server.domain.com\share2
-----------------------
Hope that helps
John
www.helpdeskrevenge.com

by ricardo_murillo

I am trying to keep the drives mapped when users are not connected to the domain. I've heard of the "persistent" command but don't know how to use it? help!

by elihu.allen

Ok I know that this should would but I can not seem to get it right. what I need is a J:| drive mapped for each user that targets a file on my file server labled "username"\docs. I have the common drive mapped and the printers mapped all through a vbs script but I can not seem to get this to work. I know that you can do it through the active directory profile but that requires you to point and click on each profile to set the drive. there has to be a way to script it so that it goes automatically! HELP!!
Also if some one knows how to cut the name so that it only shows the drive letter instead of the whole path that would be great!

net use persistent:yes j: \\serverfsa001\user_data$\%username%\DOCS

This discussion is closed to new replies.