Avatar of Stephen
Stephen
Flag for United States of America asked on

Save/Cache network credentials for shared folders - XP Pro

Hello everyone. I'm trying to save a cached credential where a folder is shared on the server and accessible on the network only with the network credentials.

The users tap into a shared database in which they input medical information and they do not know the credentials to login to the shared database. There about about 12 machines and all of these machines after connecting once and choosing "save password" continue to connect every time using that cached password.

One machine however allows me to click "save" and when I look under the saved passwords for that user, it DOES exist. However when I restart the machine, the credentials disappear and I have to reconnect manually every time. I've searched on Google and made changes but had no luck. I disabled simple sharing in XP Pro, but this didn't help either. I can't see anything different about this machine when compared to the others.

Thanks for your help!
Laptops NotebooksWindows XPNetworking

Avatar of undefined
Last Comment
Stephen

8/22/2022 - Mon
Maniac_47

You could map a network drive, using different credentials, and that way each time they logon to the network it will pass those credentials and cache them.

i.e.

log on as the user, map a drive, choose the link on the bottom right that says "connect using a different username" and input the credentials you want.  Check the box for "reconnect at Login" and it should cache those credentials for the session since the drive is now connected.  This could be a top level folder on the machine, a nonsense share on the machine, etc.

Please let me know if that doesn't work.
Stephen

ASKER
Sorry I should have mentioned that I also tried mapping the drive. The same thing happens, when I restart the machine the mapped drive loses its credentials. I have to double click on the mapped drive and enter the password and then I'm able to connect to the drive and also the database since the login information is the same for both.
ASKER CERTIFIED SOLUTION
Maniac_47

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Maniac_47

addition:  to set the startup script:

go to start->run->"gpedit.msc" and press enter

expand computer settings -> expand windows settings -> click on Scripts -> double click Startup.

choose "Add" and locate the batch file
leave the script parameters blank, and ok out.

now each time the machine logs on, it will map this drive (regardless of the user account) with the credentials you specified.

also, add @ECHO OFF as the first line in the batch file and it will disable people from seeing whats going on when it runs.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Stephen

ASKER
Ok, I will try that. I hadn't thought of that but I was really looking for the root cause of the problem and why only this system out of 12 had a problem, but if it isn't obvious then a batch might just be the least waste of time
Maniac_47

you could try mapping it via the command prompt using the /persistent switch to see if that will keep it across logins, but i think it will have the same result as the check box, will keep the drive there, but will require a password to be entered.
Stephen

ASKER
Ok thanks. Is that a fault with Windows or something corrupt in Windows? I don't really feel it can be considered normal if all the other workstations work just fine. I'll give what you mentioned a try though when I have a moment. I consult on the side of my 40+ hour a week job, so it may be a day or two before I can actually do it, but I hope to get it to before long. I'll let you know though.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stephen

ASKER
Oh, one other question. In doing a batch file like you mentioned, the password will be recorded in plain text. I have a program that will create an executable that will run with the specified credentials, but since it is an executable it can't be viewed in the same way as a simple batch file. If I created one of these EXE files, I should be able to load it with GPEDIT in the same way, correct?
Maniac_47

I believe so, it allows you to select any file and it basically just runs at startup.  If this doesn't work, you can add a program to run at startup by placing it or a shortcut to it in the "Startup" folder for all users and it will run (or you can use a microsoft utility to create a service (SC.exe) and have it set to startup "automatically" to allow it to be applied across all users and machine specific).

Certainly give the startup options in gpedit a shot, but if they don't work, there are other ways to have it run upon startup.
Stephen

ASKER
It wasn't EXACTLY what I was looking for in the terms of setting the problem right, but it was a nice work around and it worked well. Sorry for the delay. I have been busy. I created a secondary user on the server and gave it a basic username and password that if seen in the batch script, would not give away the actual admin's password. So the password is safe and the connection works upon rebooting. I just placed the file in the startup folder because that's easier. Thanks!!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck