How to logout from a Windows shared folder?

3

2

On my Windows XP, I am connected to a network shared folder on another Windows XP machine. I access the shared folder through UNC path, e.g.: \Server\shared_folder1\ When I access it first time, it asks for login credentials; but second time onwards, it opens automatically without showing login dialog box (assuming the same credentials). But I need to use a different credential to access the same shared folder. How can I logout from the shared folder which I have already accessed in the current Windows session without restarting the system?

pongapundit

Posted 2011-08-19T16:44:12.763

Reputation: 131

Answers

6

You can goto the command line and remove the shared drive:

net use /delete s:

Then you can reconnect as needed:

net use /persistent:yes s: \\server\dir

Ken Brittain

Posted 2011-08-19T16:44:12.763

Reputation: 176

1If not a mapped drive, the syntax is: net use /delete \\server Then wait about a minute for the connection to clear. – Ron – 2016-02-02T21:19:32.247

2OP'd need /user:domain\username as well to switch credentials, otherwise this'd just default to his own user/pw – None – 2011-08-19T16:53:25.363

10

Go to Control Panels/User Accounts

Change an account

Click your account

In "Related Tasks" click "Manage my network passwords"

Remove the network location you want to logout from

bateman_ap

Posted 2011-08-19T16:44:12.763

Reputation: 201

net use \\servername /delete usually works for me, but for some reason it didn't work last time I used it. This answer helped solve that problem. +1 – Phil – 2017-08-25T14:25:10.873

5

Go to Control Panel\All Control Panel Items\Credential Manager, it will have all the IDs and Passwords of the shared network folders that were saved.

enter image description here

Venkata Sagar Varma Godavarthi

Posted 2011-08-19T16:44:12.763

Reputation: 51

2

  1. Goto server dir \\server\sharename or \\server\
  2. Select Tools -> Disconnect Network Drive...
  3. A window will popup. You select all highlighted and click "OK".
  4. Now you can link to share folder with new user logon.

tatb

Posted 2011-08-19T16:44:12.763

Reputation: 21

1Judicious use of Markdown formatting can make this answer look much better. Edit your post, then click the formatting help link for more information. – jpaugh – 2015-05-13T03:51:13.973