Copy Network Drives between users


I have about 10 network drives setup on my user account in win xp home.  I would like to copy those to all the other users so that I do not have to go through and type in all those addresses, usernames, and passwords in each user account.  I tried going to NetHood, but there was nothing there.  I have can view hidden files, and I still dont see any.  Thanks!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob WilliamsCommented:
If I understand the question properly.........if they are mapped network drives they have to be added, you cannot browse and find them. You could write a simple batch file add then run it for each user to add the drives to their profile. The batch file would use the "net use " command to map the drives. For example:
  net  use  Z:  \\ComputerName\ShareName  
would map the Z drive to the shared folder named ShareName located on the computer ComputerName. If you are not familiar with batch files all you need to do is copy the text below the  ===== at the end of this post, and past in notepad. Then save it with a name like  drives.bat  it needs to end with the .bat extension and to be sure it saves with the bat extension save it with quotations around it "drives.bat" Then simply click on it and it will add the drives. If you want to be sure the networked drives appear each time the user logs on, add the persistent option and if you need to use a password, add the username and password, such that the batch file would look like the one below. [substitute for ComputerName, ShareName, password and UserName] If you need to remove a mapped drive you can use  
   net use z: /delete
For  details regarding the net use command see:


net use x:  \\ComputerName1\ShareName1  password  /user:UserName  /persistent:yes
net use y:  \\ComputerName1\ShareName2  password  /user:UserName  /persistent:yes
net use y:  \\ComputerName2\ShareName3  password  /user:UserName  /persistent:yes

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kylen1010Author Commented:
RobWill - thank you very much.  That is EXACTLY what i was looking for.  Thanks.  That really made everything a whole lot easier.
Rob WilliamsCommented:
Glad to hear
e it worked for you kylen1010.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

kylen1010Author Commented:
Hey Rob,

Sorry to bother you again, but I am having a little trouble.  When I run the batch file, everything works great and all the drives are connected, but when I log off and then log back in, it says they are disconnected.  When I try to open one of the drives, it asks for the password (username is allready filled in).  Is there a way for windows to remember the password or do I need to type it in each time.

I followed your directions and typed the correct password where your example says password.

kylen1010Author Commented:
Let me give you a little more detail, here is an example of the format of my bat file:

net use z:  "\\Upstairs1\C"  mypwrd  /user:Upstairs1\User1  /persistent:yes
net use Y:  "\\Upstairs1\C\Documents and Settings\User1\My Documents"  mypwrd  /user:Upstairs1\User1  /persistent:yes
net use X:  "\\Upstairs1\C\Documents and Settings\User2\My Documents"  mypwrd  /user:Upstairs1\User1  /persistent:yes
net use W:  "\\Upstairs1\C\Documents and Settings\User3\My Documents"  mypwrd  /user:Upstairs1\User1  /persistent:yes
net use V:  "\\Upstairs1\C\Documents and Settings\User4\My Documents"  mypwrd  /user:Upstairs1\User1  /persistent:yes
net use U:  "\\Upstairs1\C\Documents and Settings\User5My Documents"  mypwrd  /user:Upstairs1\User1  /persistent:yes

I added the "Upstairs1\" to the /user because I have a user account with that same name (user1 in the example) on both the remote computer and the computer I am connecting from.  When i run the bat file from the command prompt, it says that everything connected.  Its only when i log back in that it need a password before it can connect.

Rob WilliamsCommented:
Interesting. The persistent option/switch should look after that for you. It can be run separately if you want to give that a try, such as:

Net use  /persistent:yes
net use z:  "\\Upstairs1\C"  mypwrd  /user:Upstairs1\User1
net use Y:  "\\Upstairs1\C\Documents and Settings\User1\My Documents"  mypwrd  /user:Upstairs1\User1
net use X:  "\\Upstairs1\C\Documents and Settings\User2\My Documents"  mypwrd  /user:Upstairs1\User1

Or the other option would be to not use the persistent (no need) and add the drive mappings to a logon script that is run when each user logs on. In a domain, rather than workgroup, environment, this is the normal way of doing it. You could do this by adding the script to the "Startup" folder, using local group policy, or using Microsoft's method
Rob WilliamsCommented:
Forgot to mention, if you create an identical user account on the computer you are mapping the drives to, the user will not require a password at any time. Must be exact same account name and password.
kylen1010Author Commented:
Both of those, the startup script and the same account names and passwords worked.  I am using the same account names because the script takes a little time to complete at each login.  Thanks!  Again!!!
Rob WilliamsCommented:
"Love it when a plan comes together" :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.