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

Normally, after we open a network drive using one authentication, its hard to change the user that it used to open that drive to another one.

I basically have to use credential manager for this task.

Any other easy way?

share|improve this question
At the command line you can run net use * /d /y - that'll cause Windows to forget any cached credentials you have to an open network share. I typically have a shortcut that points to cmd.exe with -k net use * /d /y as arguments for this very reason. – vcsjones Apr 3 '13 at 0:41
@vcsjones, Didn't work. – Starx Apr 3 '13 at 0:50

I've been using this:

net use "\\SERVER\SHARE" /D /Y
net use "\\SERVER\SHARE" /USER:"Username" "password"

If its a network mapped drive, lets say F:\, then use this:

net use F: /D /Y
net use F: "\\SERVER\SHARE" /USER:"Username" "password"

You can write this to some .bat file and run it to switch from one user to another. If you don't want to let your password written in the file, write * in the place of the password. It will then ask you to provide the password when you run the script.


To make the ability to switch more reliable, I recommend you use the network share as mapped drive. It will enforce you ability to really disconnect from it when you want even if there are programs locking files and folders in the share at that moment.

If you are acessing files using \\server\share\ as path, sometimes you won't be able to effectively disconnect from it for mysterious reasons, even if the entry disappear from the net use list.

You problably already had a Pen Drive that refused to "safely disconnect" even though you closed all windows. Its the same deal here, but in this case there is no plug to pull out.

share|improve this answer
I get this 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. – Starx Apr 3 '13 at 3:03
Okay, in the case you are connected to more than one share in the same server, you will have to remove them all before connecting with different credentials. You can use net use * /D /Y to disconnect from all network shares. – Havenard Apr 3 '13 at 3:06
You can run NET USE from the command prompt to see your current connections. – Mark Allen Apr 3 '13 at 3:24
I did still gives the same output. – Starx Apr 3 '13 at 3:24
Check the edit part on my post, maybe thats your case. – Havenard Apr 3 '13 at 3:25

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.