Usually it's done by login scripts but you also could use the following command that maps the drive permanently:
Main Topics
Browse All TopicsHi everyone
I map some drives in explorer and selecting the "Reconnect at logon" option but when I reboot it keeps asking me for a p/w. I am using XP SP3 and trying to map on Windows 2003 server.
Your help will be very much apppreciated.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I agree login script is the best way as sometime the mapped drives disappear. If the user were to logoff/logon the drive would be restored.
correct syntax with password in a login script is:
net use Z: \\server\folder$ /user:username password
if not using a login script add the
/persistent:yes
switch to the end
Thanks for your replies guys but I have to explain a bit more the situation. I am building my PCs with XP SP3 MUI and I run three "net use x: \\server\share /persistent:yes" commands in my unattend.txt file. When the MUI installation finishes, the PC logs in to Windows with local admin account. Then the problem happens. But even if I map manually from Windows Explorer, as explained above, still mappings are lost after reboot. I used 2 different domain user accounts to test and one them gets locked out too due to some Group policy which I don't know about. Hope this helps to understand better.
Business Accounts
Answer for Membership
by: d0n7_5h007Posted on 2009-09-14 at 06:10:22ID: 25324983
sometimes when mapping drives you dont have an option to save the password.
if you cancel the prompt for the username and password. Click start and then run type \\IP_ADDRESS and press return. enter the username and password and check the remember password checkbox. now when the drive maps it should use the saved username and password.