Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving a network username/password

Status
Not open for further replies.

tom1681

Programmer
Sep 4, 2002
40
GB
I've got a Windows 2000 Pro computer that needs access to a share on a Windows 2003 server. When I first connect to the server I am asked for a username and password which I enter and I connect sucessfully. However, after half an hour or so (or after logging off and on gain), if I try the connection it asks for the username and password again which means the program I have running can't access the share without the username and password being entered manually. How can I get Windows so save these details? I've tried all the things mentioned here: which haven't helped. Neither machine is in a domain.

Any ideas?

Thanks in advance.
 
Would it not be possible to map the folder to a drive letter on your machine?

You can have this mapping being recreated everytime you start your machine.



---
Make the best use of what is in your power, and take the rest as it happens.
 
I should have mentioned that - it doesn't save the details when you map a drive either. The mapped drive will loose it's connection after a while too (the red cross appears next to it in Explorer). To restore this, the username and password has to be typed in again... It's not my machine so I need the user to not have to enter the username/password on reboot or any other time.
 
It's maybe not the best solution but you could have a batch file in the startup folder that will map up the folders as you need on startup like this.

NET USE M: \\servername\folder /user:DOMAIN\USER password

This will make sure that the folder get mapped up everytime the pc starts.


---
Make the best use of what is in your power, and take the rest as it happens.
 
Windows XP introduced a protected storage service to handle this isssue.

The best advice is to make the username and password of the user a local user on the Windows 2003 server so that alternate credentials are not required to access the share.

 
Thanks for your suggestion. I'd actually already tried that in a scheduled task (with a remove connection command before it) and that got things in a right knot. After a while it couldn't remove it as it said it didn't exsist, and it couldn't add it again as it said the drive letter was in use! A reboot sorted it out.

As I said before, having a mapped drive doesn't help either as the connection for that goes after a while too.

There must be a way to make Windows save the username/password - it does on other W2000 machines I have, why's this one different?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top