MSFN Forum: Mapped Network Drives - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mapped Network Drives Rate Topic: -----

#1 User is offline   DFTECH 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 27-April 09

Posted 15 October 2009 - 10:34 AM

To make a long story short, one of our servers crapped out on us and I am in the process of rebuilding.

AD is still in tact, but there are still some missing pieces.

I would like to create a login script to map all existing users to a network drive. (ie. - net use u: \\[SERVER]\users\%username% /yes) The trouble being, the \\[SERVER]\users folder isn't populated with all of the folders associated with each individual user. I had thought that it would automatically be created if the folder did not already exist, but that hasn't happened for me. I think I may be missing something and there are simply too many users to make the folders by hand. Is there any type of script that I can use to create the users folders?

I know I'm probably not explaining this properly, but hopefully someone gets what I'm trying to say. If not I can try to make it more clear.


#2 User is offline   chilifrei64 

  • How do you like your Chili?
  • PipPipPipPipPip
  • Group: Members
  • Posts: 995
  • Joined: 16-February 05

Posted 15 October 2009 - 11:08 AM

it will be automatically created if you map the drive using active directory or redirected profiles/folders, not if your running a net use command

I would try running a mkdir \\server\users\%username%
then put net use u:\\server\users\%username%

that way it will make the folder first.

#3 User is offline   DFTECH 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 27-April 09

Posted 15 October 2009 - 12:07 PM

Sounds like what I am looking for. Question though: If that folder already exists, will the mkdir overwrite the exist folder? Like would it be a bad idea to include that mkdir in the login script itself?

View Postchilifrei64, on Oct 15 2009, 11:08 AM, said:

it will be automatically created if you map the drive using active directory or redirected profiles/folders, not if your running a net use command

I would try running a mkdir \\server\users\%username%
then put net use u:\\server\users\%username%

that way it will make the folder first.

This post has been edited by DFTECH: 15 October 2009 - 12:08 PM


#4 User is offline   chilifrei64 

  • How do you like your Chili?
  • PipPipPipPipPip
  • Group: Members
  • Posts: 995
  • Joined: 16-February 05

Posted 15 October 2009 - 06:07 PM

no, it will just say a subdirectory or file \\server\users\username already exists and exit to the next line.

One part I didn't really think of though is you will then need to set permissions on each new folder otherwise everyone will have access to everyones stuff..

I guess what I would do is actually how I ran things at my last place..

Redirect everybody's My Documents to the server and just tell everyone to save stuff there. That way you can just map it like you wanted to do (via \\server\users\%username%) and it will automatically create the folder like you want..

Also, one thing I noticed in my time is if you give users a mapped network drive they still might not use it.. but if you redirect their my documents.. that is where they just naturally save everything anyways.. so you dont really need to train your users any different..

SO yeah.. i change my mind.. I would redirect their my docs

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy