Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When connecting to a server via Explorer (not a mapped network drive) even if the "Remember my credentials" check box is not selected, Windows remembers the password until you log out. Is there any way to switch user/password for a share without logging out and back in?

share|improve this question
up vote 15 down vote accepted

Are you mapping the share to your system, or merely accessing them directly via My Computer? If you map the drive, then you can chose the link to Connect using a different user name and choose the user/password there. The 'net use' command will also allow you to access a share using alternate credentials, but not sure if it will allow you to browse the share without mapping it using those alternate credentials.

share|improve this answer
'net use' worked! The command 'net use \\SERVER * /user:username' works to change the credentials for the share. Thanks! – Tim M Mar 25 '10 at 3:31
@Tim M: Actually, it seems to work better as net use \\SERVER\SHARE ... -- that is, without the asterisk (and with a sharename, but I assume you used one when you actually ran it ;-). The asterisk causes a drive letter to be assigned; do this too many times and you'll run out! – SamB Jul 4 '10 at 20:23
I have the same problem, but when doing it I get an error System error 1326 has occurred. and Logon failure: unknown user name or bad password. but I know the username and passwor dare correct – Petah May 17 '11 at 3:50
Tried with * "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again." Tried with \share, says "The command completed successfully." but I still can't access the share. – Mark Jeronimus Feb 14 at 10:05

You can override stored credentials for shares in Windows via the Control Panel. I believe this should be possible since around Windows 2000, or at least XP. However, the names of these functions are different in all versions. I am using names from Windows 7 in this post.

  • Open your account page in User Accounts and Family Safety.

    (Click your image in the start menu, or navigate through control panel).

  • In the left hand side panel, select Manage your credentials.

  • Under Windows Credentials:

    • If the server in question has an entry, delete it.

      (Most likely it will not be present, if you haven't been here before).

    • Select Add a Windows Credential.

    • Enter the server (e.g. \\\myShare).

    • Enter new desired credentials.

Now, when navigating manually to \\\myShare, it will not use the old credentials any more.

share|improve this answer
Apparently the cmdkey utility is used to manage this from the command line. – Martin Aug 1 '14 at 13:35

I tried to use what Matrix and Tim both suggested, but that did not work for me. In my case I ended up using

net use \\SERVER\share /delete

What this did was terminate all connections to the share drive and then when I tried to reconnect it prompted me for my username and password again.

share|improve this answer
This worked for me but the connection to the server did not terminate immediatelly, I've been able to browse the shared folder for about a minute before I was kicked out – flagg19 Apr 4 '15 at 15:37

What this did was terminate all connections to the share drive and then when I tried to reconnect it prompted me for my username and password again.

relogin, and check again

share|improve this answer

To delete cached credentials you can follow the below steps.

You can refer the article

  1. Open Run Window by clicking Start -> Run or click ⊞ Win+R.

  2. In the text box, type the command rundll32.exe keymgr.dll, KRShowKeyMgr and click OK. Note: You can also type and run this command through Command Prompt.

  3. To remove a saved credential you can select one of the entries and select Remove. A confirmation screen will appear. Click on OK and the account will be removed.

  4. You can add additional saved passwords as well by clicking on the Add button and entering the appropriate information.

share|improve this answer

If you removed or edited the credentials, you are suppose to log out and log back into Windows. Otherwise the cached credentials will still be used.

share|improve this answer
So many answers explain deleting/updating stored credentials via different methods, but none were effective until logging out and in again... at least in my case! – Robert Waddell Aug 4 '15 at 22:09

Windows 8 Location is a little different:


Control Panel -> All Control Panel Items -> Credential Manager


Use the Run Box (Windows Key + R): control /name Microsoft.CredentialManager

share|improve this answer

I just found that you have a list of local user/passwords under:

Control Panel > Credential Manager

(for local network shares, ftp accounts, etc)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.