Solved

map network drive save password

Posted on 2009-05-18
16
4,310 Views
Last Modified: 2012-05-07
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,
0
Comment
Question by:rowfei
  • 8
  • 5
  • 3
16 Comments
 

Expert Comment

by:justin_romaine
Comment Utility
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
 

Author Comment

by:rowfei
Comment Utility
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
 

Expert Comment

by:justin_romaine
Comment Utility
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
 
LVL 2

Expert Comment

by:great_gentle_man
Comment Utility
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
 

Expert Comment

by:justin_romaine
Comment Utility
But what about when the password expires in 90 days. Will it still work?
0
 
LVL 2

Expert Comment

by:great_gentle_man
Comment Utility
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
 

Expert Comment

by:justin_romaine
Comment Utility
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
 

Author Comment

by:rowfei
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Expert Comment

by:justin_romaine
Comment Utility
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
 

Author Comment

by:rowfei
Comment Utility
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
 

Expert Comment

by:justin_romaine
Comment Utility
The only way i know i the command line method im afraid.
0
 

Author Comment

by:rowfei
Comment Utility
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
 

Expert Comment

by:justin_romaine
Comment Utility
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
 
LVL 2

Accepted Solution

by:
great_gentle_man earned 250 total points
Comment Utility
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
 

Author Comment

by:rowfei
Comment Utility
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
 

Assisted Solution

by:justin_romaine
justin_romaine earned 250 total points
Comment Utility
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now