rowfei
asked on
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,
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,
ASKER
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?
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?
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.
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_na me
or
USERNAME===>user_name@test domain.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.
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_na
or
USERNAME===>user_name@test
and in password filed type your password
PASSWORD===>**************
and close the windows with OK .
try to connect again to that address, it should work.
But what about when the password expires in 90 days. Will it still work?
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.
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.
simmilarly from the command line method.
net use [drive letter]: /d
net use [drive letter]: \\server\c$ /user:mydomain\administrat or /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.
net use [drive letter]: /d
net use [drive letter]: \\server\c$ /user:mydomain\administrat
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.
ASKER
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?
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?
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\use rname argument to specify who you are connecting as.
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\use
ASKER
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?
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?
The only way i know i the command line method im afraid.
ASKER
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
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
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
So Justin_romaine, if I am using your command, what is going to happen after 90 days since my password will be changed?
So Justin_romaine, if I am using your command, what is going to happen after 90 days since my password will be changed?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can do this from a batch file.
e.g.
c:>net use p: \\server\c$ /user:mydomain\administrat
It will prompt for a password. but it will remember it and reconnect at start up.