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

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?

share|improve this question

migrated from Oct 1 '12 at 20:49

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 4 down vote accepted

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
share|improve this answer
OP'd need /user:domain\username as well to switch credentials, otherwise this'd just default to his own user/pw –  Marc B Aug 19 '11 at 16:53

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

share|improve this answer
  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.
share|improve this answer
Judicious use of Markdown formatting can make this answer look much better. Edit your post, then click the formatting help link for more information. –  jpaugh May 13 at 3:51

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.