none
How to logout from shared folder RRS feed

  • Question

  • I connect to a shared folder, entering the userid/password when requested. All good. I would like to change userid to a different userid and reconnect to the same folder.

    How do I disconnect from the shared folder so that next time I connect I get the prompt to enter userid/password?

    I have looked at the credential manager -- nothing is saved there. I am not using a mapped drive thus "disconnect" does not show up on the context menu. I found the very well hidden stored password manager (rundll32.exe keymgr.dll, KRShowKeyMgr) and nothing is stored there.

    All I want to do is login as a different user. My userid/password seem to be "cached" somewhere.

    I also tried the following experiment. I changed my password on the server. I was prompted to enter userid/password. Good. I changed my password back to the previous password. I could access the share without entering userid/password.

    Thanks all!
    Tuesday, February 23, 2010 4:54 AM

Answers

  • Hi,

     

    Please also try the following steps. Please restart the machine after performing each step and check the result.

     

    1. Type the following command in Command Console:

     

    Net use * /DELETE

     

    2. Open Credential Manager and clear all saved user or password. Then, please access network shared folder.

     

    3. Temporarily disable Workstation service and restart it again.

     

    Hope this helps.

     

    Novak

    • Marked as answer by Novak Wu Tuesday, March 2, 2010 2:50 AM
    Thursday, February 25, 2010 7:30 AM

All replies

  • Hi,

     

    Please open Command Console and type the following commands:

     

    Net use \\Computer name or IP address /DELETE

     

    For more information about the command, please refer to the following article:

     

    Net use

     

    Thanks,

    Novak

     

     

     

    Wednesday, February 24, 2010 7:36 AM
  • The net use \\computername /delete did not work. says "The network connection cannot be found."

    I am still connected to the share.

    NET USE with no parameters does not list any connections yet I am still connected to the share.
    Thursday, February 25, 2010 4:59 AM
  • Hi,

     

    Please also try the following steps. Please restart the machine after performing each step and check the result.

     

    1. Type the following command in Command Console:

     

    Net use * /DELETE

     

    2. Open Credential Manager and clear all saved user or password. Then, please access network shared folder.

     

    3. Temporarily disable Workstation service and restart it again.

     

    Hope this helps.

     

    Novak

    • Marked as answer by Novak Wu Tuesday, March 2, 2010 2:50 AM
    Thursday, February 25, 2010 7:30 AM
  • In Windows Explorer, my computer go to the tools menu, or right-click on My Computer. Choose Disconnect Network Drive. Next time you connect to a network drive, uncheck the "Reconnect at Logon" box"
    Thursday, February 25, 2010 8:50 AM
  • please read the OP...he can not disconnect what is not connected.

    quote from OP
    " have looked at the credential manager -- nothing is saved there. I am not using a mapped drive thus "disconnect" does not show up on the context menu. I found the very well hidden stored password manager (rundll32.exe keymgr.dll, KRShowKeyMgr) and nothing is stored there."


    gwww, try this map the drive as user you want, does it allow it??
    Thursday, February 25, 2010 10:39 AM
  • The only way I could get the folder to stay disconnected was to restart the workstation service. Seems like this is something of a security hole. Let's say I have one of our admins come over to my machine and install a new piece of software from some "secured folder". When they are done they disconnect from the share and leave. Now all I have to do is go back to that share and I full control of the data in there.

    Am I missing something?

    Thursday, March 4, 2010 2:23 PM
  • If credential manage lets you down try "stored user names and passwords"

    Windows 7 /2008 R2 - Remove Saved / Cached Network Passwords

     

    Pete

    Friday, January 20, 2012 10:32 AM
  • I know I'm bumping this thread but oh well, I have a solution to future googlers of this problem:

    If you're running the win7 platform, go to your advanced sharing options, and switch the final option (Whether or not to let Homegroup manage your connections to other computers) from allowing homegroup to manage it to "Use User Accounts and passwords to connect to other computers", that in conjunction with Novak's cmd command <net user * /delete*> did the trick for me.

    Sincerely,

    holmzi_online

    • Proposed as answer by anthistam Tuesday, July 24, 2012 10:01 AM
    Wednesday, April 11, 2012 9:21 AM
  • 3. Temporarily disable Workstation service and restart it again.

     

    Hope this helps.

     

    Novak

    @Novak

    I've been having an issue where net use * /delete on its own deletes all connections but still does not log out in Explorer (even with credentials not saved and Credential Manager clear). I found this answer, which suggested restarting Workstation - most answers to "how to log out of a share" don't include that step. Restarting that service did the trick. However, I'm trying to find out why that is the case, why I seem to be in the minority, and how to log out without having to restart Workstation.

    To that end, why did you suggest restarting Workstation? Was it from past experience? Do you have some knowledge that led you to that conclusion? Do you have any concrete sources or references that explain what's going on there that led you to suggest that as a step? 

    In particular, I'm trying to get more information to solve my question about this on Superuser, and knowing why you suggested step 3 could help narrow it down. Can you shed some light on why you suggested that step and how you knew it would work? Thanks!

    Saturday, February 28, 2015 5:36 PM
  • I do not recommend restarting the workstation service, since my machine has become stuck. It is a Windows 10 and I was connected through Logmein. I recommend restarting the computer since it will clear temporarily stored credentials, which are stored in memory 
    Monday, February 13, 2017 7:44 PM
  • What a bunch of BS.  Don't answer the question unless you know the answer!!!
    Friday, March 31, 2017 1:52 AM