Since upgrading one of my machines to Windows 10 from Windows 7 I’ve been able to connect to any of the NAS drives on my home network. When attempting to access one of the drives via explorer I was presented with the following error message:
For search engines:
\\nas_drive is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. A specified logon session does not exist. It may already have been terminated.
From a number of googles many people seem to suggest turning off the storage of passwords and credentials by disabling:
Network access: Do not allow storage of passwords and credentials for network authentication
This didn’t work for me and if it did, it would be, at best, a short term workaround.
It did make me start to wonder how to store credentials and which credentials to store for a NAS drive.
So, without further ado, to the solution…
First, click the windows button  and start typing “Credential Manager” (I got to “cred”)  until you see the option for Credential Manager in Control panel . Choose this option.
Next, within Credential Manager, select the Windows Credentials option  and then select the “Add a Windows credential” option .
In the Add a Windows Credential window, add the name or the ip address of the NAS drive , not forgetting the double backslash if you use the name. You should also add the username  and password  for the user setup on the NAS drive as required. If you haven’t set one up for the NAS drive yourself then try the default username and password. For example, for a D-Link ShareCenter, the default username is “admin” and the password is blank (see here). Once you’ve filled in the necessary details, click the OK button .
You should now see the newly added credential under the Windows Credentials heading . You should see the name of the NAS drive  followed by the address (which is also the name)  and the specified username and the fact that there’s a password .
You’ll need to carry out this process for each NAS drive you want to access.
That’s it! You can close the Credential Manager window and you should now be able to connect to your NAS drive.