Solved

map network drive save password

Posted on 2009-05-18
16
4,314 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
ID: 24418260
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
ID: 24418376
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
ID: 24418396
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 2

Expert Comment

by:great_gentle_man
ID: 24418433
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
ID: 24418446
But what about when the password expires in 90 days. Will it still work?
0
 
LVL 2

Expert Comment

by:great_gentle_man
ID: 24418450
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
ID: 24418468
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
ID: 24418469
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
 

Expert Comment

by:justin_romaine
ID: 24418487
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
ID: 24418511
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
ID: 24418520
The only way i know i the command line method im afraid.
0
 

Author Comment

by:rowfei
ID: 24418592
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
ID: 24418603
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
ID: 24418643
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
ID: 24418678
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
ID: 24418712
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

777 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