Page 1 of 1
Forcing Windows to remember password ?
Posted: 21 Aug 2012 23:32
by Fabien
Hey all,
I've mapped a network drive on my Windows 7 machine, and I'm using CIFS with Local User.
For some odd reason, whenever I log into my windows machine and try to access the CIFS share, it asks for the login / password. Even if I check "remember password". Once I've entered it, it won't bother me until the windows session is closed or I shut down my computer.
If anyone has a solution, that'd be much appreciated

Re: Forcing Windows to remember password ?
Posted: 22 Aug 2012 01:04
by Onichan
Hmm my guess is it has an incorrect password saved that it is trying first then it fails and asks you again. Easiest thing is to try and disconnect all mapped drives then open a command prompt by going to start menu and typing cmd. Then type "net use" it should show all saved sessions to any network resource. You want to delete all of them that go to your NAS which you can do by typing "net use \\192.168.0.1\media /delete" of course replacing the ip and share with your correct information. Do that for them all then try re-mapping it and checking the box. Then relog and see what happens.
A tip instead of having to type out the share is you can right click in the cmd window and select the mark, this will let you highlight text in the window and once you have the share highlighted press return which copies it to your clipboard. Then you have to right click again and select paste.
Re: Forcing Windows to remember password ?
Posted: 22 Aug 2012 08:52
by biggsy
I just had the same problem.
I had a different user name and password in Win 7 and N4F.
I changed N4F to the same as the Win 7 and it reconnects every time.
Not sure if that's the way it's supposed to be but it worked.
Re: Forcing Windows to remember password ?
Posted: 22 Aug 2012 16:24
by Onichan
biggsy,
I use different usernames and passwords for my windows and NAS without issues. You shouldn't need to make them the same.
Re: Forcing Windows to remember password ?
Posted: 22 Aug 2012 18:10
by raulfg3
Check that You use NT1 and AIO enable, and select anonimous as conection type.
SMB2 do not enable anonimous login, need a local user
Re: Forcing Windows to remember password ?
Posted: 22 Aug 2012 22:45
by Fabien
Alright, thanks for the tip raulfg3, it works now

)
Re: Forcing Windows to remember password ?
Posted: 23 Aug 2012 10:13
by biggsy
Onichan,
Are you using SMB2 and are we talking about users and passwords as configured under Access > Users and Groups > Users?
With Local user authentication on CIFS/SMB I couldn't get Win 7 to automatically reconnect at boot. It would always give the "Unable to reconnect all network drives" and I'd have to put in a user name and password that matched what was configured on N4F.
Maybe I've got something configured wrong elsewhere.
Re: Forcing Windows to remember password ?
Posted: 24 Aug 2012 00:13
by Onichan
Biggsy,
Yes I am using SMB2 and I was referring to local NAS users which yes is Access|Users.
If you are able to connect after you enter the password then we know your login is good so I would try first disconnecting all the mapped drives and running the "net use" to ensure there really isn't any saved ones. Then just to make sure you don't have any saved credentials you can go in Windows Control Panel\All Control Panel Items\Credential Manager. That will list all saved credentials and you can click on any of them that point to your NAS and delete them. Then I would reboot and map a drive by going to my computer and near the address bar click the "Map network drive" and check the "Connect using different credentials" and ensure the save credentials box is checked. If it maps successfully try rebooting and see if it maps automatically. Normally you shouldn't have to do all that, but this is the longer way that should ensure it works.
Re: Forcing Windows to remember password ?
Posted: 24 Aug 2012 09:54
by biggsy
Many thanks, Onichan, I hadn't even thought about saved/cached credentials - makes sense. I'll give that a try.
Re: Forcing Windows to remember password ?
Posted: 24 Aug 2012 10:48
by biggsy
The problem was that I had used my Win 7 username as the N4F username but the two passwords were diffrent. I probably haven't thought about the Win 7 username since I installed the OS - just enter the password at every boot
By having the username the same on both, Win 7 always tried to use the Win 7 password to reconnect at boot, not the password I had entered and said to save for reconnecting. If I manually reconnected with "different credentials" (N4F/Win 7 username and N4F password) - it would connect fine.
Deliberately making both the N4F username and password different from the Win 7 username and password and telling Win 7 to remember those credentials, it reconnects every boot.
Thanks, again, Onichan.
Re: Forcing Windows to remember password ?
Posted: 24 Aug 2012 21:54
by Onichan
I am glad you got it working, though my Windows login uses the same username as the local NAS account I use. So it should have been possible to get it working like that, but not sure what was up with yours. Either way whatever works the easiest is best.
Re: Forcing Windows to remember password ?
Posted: 08 Sep 2012 12:36
by pellegj
Try and use cmdkey from a command prompt.
Show you stored credentials:
Delete the stored password for accessing the system named NAS1:
Add credentials for accessing the system named NAS1:
Code: Select all
cmdkey /add:NAS1 /user:username /pass:password
So, if you have a nas4free system named "NAS1", your nas4free username is "nasuser1" and your nas4free password is "naspass", then the command should look like the following:
Code: Select all
cmdkey /add:NAS1 /user:nasuser1 /pass:naspass