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

Simple Drive Mapping Per User (Not for me though!) 1

Status
Not open for further replies.

gstar1703

IS-IT--Management
Apr 7, 2005
138
GB
Hi, Seen this script at and wondered if its possible to ammend it, to map to individual users directory. eg; We have a NAS device where all users have a directory \\NAS_SERVER\UserName.
I would like to do this with GPO if at all possible with one script for all users.

Do I ask too much???
___________________________________________________________
' VBScript.' Guy Thomas February 2004.
'
' Purpose of script to map a network drive to H:\
' ******************************

Dim objNet

Set objNet = CreateObject("Wscript.Network")

objNet.MapNetworkDrive "H:", "\\logonserver\home"
WSCript.Quit
' End of Guy's VBScript
________________________________________________________
Thanx
G
 
If I understand what you're trying to do you could try sharing out each user's home directory using a share name that matches the directory you've created for them (which you've already set to match their user name) then use a batch file logon script to map them to it. You could have a universal script then since the user name matches the share name:

net use H: \\nas_server\%username%
 
I'm not sure about the above script but you could also share out the top folder on the NAS then use the Net Use cmd above to map the drive for each user.

One script, and only one shared folder.
 
Stunpals is right about only sharing the top level folder and it will work as he describes as long as you don't have any Win9.X clients. If you do then you will have to share out the user's directory too for them. It won't be necessary for Win2K and later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top