Windows refuses to remember network share credentials

network-sharesshare-credentialswindowswindows 7

I've been tearing my hair out trying to get Windows to remember the credentials to a network share, and almost all attempts were completely fruitless.

I have two Windows machines, one being a media center that is supposed to access content on the other, but every time it fails to remember the credentials and requires a manual login to the remote share to get things going.

I tried various thing. Adding the credentials to Credential Manager, trying to change the NTLP security level, changing the username/passwords of the two machines to match, and I'm sure I tried other things too, nothing worked.

Best Answer

This problem seems to stem from Windows attempting the initial connection to a networked drive using the its host's domain (the "Current Domain" in the picture) instead of the network server's domain (the "Desired Domain" in the picture).

For the following example let us assume the username of a user who is authorized to access the network drive is "SomeUsername". If I entered "SomeUsername" into the username field of the box below and then also entered the correct password Windows would connect to the network drive, but when I restated my computer Windows would not remember the username and password, even if I had checked the "Remember my credentials" box. The solution is to change the domain you enter your credentials. As noted in the picture you will need to type "\{DOMAIN}\{USERNAME}" in the username field without entering a password then click OK. For this example I would enter \FREENAS\SomeUsername into the username field, leave the password field blank, then click OK.

enter image description here

After you do that you will get a new pop up that looks like the one below. Enter the correct password, check the "Remember my credentials" box, then click OK. The next time you restart Windows your network drive should reconnect.

enter image description here

One side note, the part where you leave your password blank isn't really necessary, but leaving the password blank as suggested will allow you to clearly see what domain name Windows is going to store with the credentials you enter.