map network drive save password

I'm setting up file sharing in windows XP and using mapped network drives for access. I mapped the share drive, and input my username and password by clicking  "Connect using a different user name" since the sharedrive is on another network.

Every time I restart my computer though, I got the "access is denied" when I click the share drive.

 Is there a way to get it to remember the password?

I've looked on google and it says the dialog which prompts for your password should have a tick box labeled 'Remember my password' as shown here. But mine doesn't have this.

I'm running XP Pro SP2. I don't want to have script auto logon due to the security.

Thanks,
rowfeiAsked:
Who is Participating?
 
great_gentle_manConnect With a Mentor Commented:
You should frist map the network drive. then use the methd that i posted earlier.

or justin_romaine is also has good advice which you can follow.

I think both cli and gui wiil result in same thing, which ever you use will be your prefrence.

it is after 90 days that you will need to change the password. just change the password after 90 days.
0
 
justin_romaineCommented:
If the resource you are connecting to is from another domain you will need to supply a domain username and password to that resource.
You can do this from a batch file.

e.g.

c:>net use p: \\server\c$ /user:mydomain\administrator /persistent:yes

It will prompt for a password. but it will remember it and reconnect at start up.
0
 
rowfeiAuthor Commented:
Thanks.

But my password for another domain will changed for every 90 days. So this batch file will work when the password is incorrect due to the password changed for every 90 days?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
justin_romaineCommented:
Unfortunately there is no magical solution for this. If you password changes, you will need to run the command again. Unless you can convince the admins to setup a user just for this resource that never expires the password. Not so dangerous if it is just for that one resource and not used anywhere else.
0
 
great_gentle_manCommented:
Click Start and open Run
In that window type: control userpasswords2 , press OK
in the next window click Advanced
click Manage Passwords
from there click add
in the server tab type the ip address or computer name for the resource you want to access.
e.g SERVER==> \\192.168.0.1 or \\testpc

in the user name tab type the name of user in either format
USERNAME===>testpc\user_name

or

USERNAME===>user_name@testdomain.com
and in password filed type your password
PASSWORD===>******************
and close the windows with OK .
try to connect again to that address, it should work.
0
 
justin_romaineCommented:
But what about when the password expires in 90 days. Will it still work?
0
 
great_gentle_manCommented:
and if you have to update the password.
Click Start and open Run
In that window type: control userpasswords2 , press OK
in the next window click Advanced
click Manage Passwords .
select the resource form the list.
and retype the password.
0
 
justin_romaineCommented:
simmilarly from the command line method.

net use [drive letter]: /d
net use [drive letter]: \\server\c$ /user:mydomain\administrator /persistent:yes

and enter you new password.

I prefer the command line method as you can save it to a batch file and just run it when you need to rather than go into a gui.
0
 
rowfeiAuthor Commented:
Thanks, Great gentle man.

But how should I map the network drive? I have added the server name with user name and password under control userpasswords. But when I mapped the drive, I got "Access is denied". Do I still have put my user name and password again when I mapping the drive?
0
 
justin_romaineCommented:
No. It will only prompt you if its needs one.
So in that case it you have access to that resource anyway you should just use the net use [drive]: \\server\resource command and your user gets passes atomatically unless you are not logged into the domain at the time in which case you will need /user:domainofresource\username argument to specify who you are connecting as.
0
 
rowfeiAuthor Commented:
If I perfer with GUI,

But how should I map the network drive? I have added the server name with user name and password under control userpasswords. But when I mapped the drive, I got "Access is denied". Do I still have put my user name and password again when I mapping the drive?
0
 
justin_romaineCommented:
The only way i know i the command line method im afraid.
0
 
rowfeiAuthor Commented:
So in this command line:

If I want to map the \\test\test to Z drive, is the coomand line look like below:

net use [drive letter]: /Z
net use [drive letter]: \\test\test /user:domin\username /persistent:yes
0
 
justin_romaineCommented:
the correct usage would be:

To remove the existing mapping
net use Z: /d

to add the new one with the change password

net use Z: \\test\test /user:domain\username /persistent:yes


net use Z: /d
net use Z: \\test\test /user:domain\username /persistent:yes

Open in new window

0
 
rowfeiAuthor Commented:
Thanks.

So Justin_romaine, if I am using your command, what is going to happen after 90 days since my password will be changed?
0
 
justin_romaineConnect With a Mentor Commented:
If you use the Gui method to update you passwords then you should just need to restart or relogon to your computer after the initial net use with the persist parameter it will try to reconnect, it your managed password reflects your new domain password then it will happen automatically.
Otherwise you will get the access denied message and you will need to use my commands again to delete the drive and add the new password via the prompt method i mentioned earlier.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.