Windows – How to reconnect to a UNC share using different credentials

credentialsnetwork-shareshareuncwindows

I connected to my NAS using windows explorer, by entering \\DS412 in windows explorer. It prompted me for a username and password. I entered them and then the DS412 showed up under Network in Explorer. Worked fine.

The share was listed by NET USE and I used this command to disconnect:

NET USE \\DS412\IPC$ /DELETE

And that worked fine. Once.

I then reconnected using username and password, this time I checked the box to remember these credentials. Worked fine.

Now I again want to connect as another user. So I would like to disconnect from \\DS412 and reconnect using different credentials.

I tried using NET USE, but it no longer lists the \\DS412. Entering NET USE \\DS412\IPC$ /DELETE again results in The network connection could not be found.

Restarting the computer does not help. The \\DS412 does not automatically show up under Network in Explorer, but if I do enter \\DS412 in the Explorer bar, it immediately reconnects using my old credentials without prompting.

Note that I am not mapping this UNC path to any drive letter. I have found this advice, but as you can see it does not help. I have found suggestions to use regedit, but I do not find the exact keys suggested, and I would really prefer not to hack the registry. This should be doable using command line commands?

I am running Windows 7.

Best Answer

You may be able to clear the cached credentials by using the Credential Manager in the Control Panel.

Try browse into the Control Panel, enter "Credential Manager" into the search bar on the top right, then click on the "Credential Manager" result. You may find your cached credentials under the "Windows Credentials" section, if so you can click "Remove from vault" to clear them.