How can I clear the "authentication cache" in Windows 7 to a password protected samba share?

Solution 1:

Try this

Control Panel\All Control Panel Items\Credential Manager

Click on the arrow beside the cred you wish to delete

than click on remove from vault

Solution 2:

Incomplete advice. The answer is:

As previously mentioned clear all entries in credentials manager, close any open share explorer windows and/or all applications utilizing the share.

THEN

Open services manager. Find the "Workstation" service and restart it.


Solution 3:

How about this:

net session \\samba.server.ip.address /delete

You can also use:

net use

To give a list of active sessions and to ensure that you've deleted them afterwards.


Solution 4:

If deleting credentials from Credential Manager does not help then you have two more options:
1) Open Run and execute rundll32.exe keymgr.dll, KRShowKeyMgr and look for addresses you would like to remove.
2) If CMD's net use does not show anything then open cmd as administrator and execute:

net stop workstation /y
net start workstation

This should clear the cache. Last option always works for me.