Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

By default when I access some computer's share ( typing \\hostname in Windows Explorer ) Windows passes credential of my current user. It prompts for credentials only when current user's credentials are incorrect.

Is there some way to force Windows not to pass current user's credentails, but prompt for them ? I thought about making use of net view command, but it doesn't grab 'user' and 'password' parameters.

share|improve this question

2 Answers 2

up vote 16 down vote accepted

if you type the command


you will be prompted for the password of that user to be used when accessing that server

share|improve this answer

If the accepted answer gives you this error;

System error 1219 has occurred.

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.

You'll need to first remove the existing shares. If you're in a hurry, this will nuke all of them, regardless of server;


If, you want to be a bit more precise and preserve your other shares, use the following command to list the existing shares on the server;


Then delete the conflicting share with;


Finally, using the accepted answer will succeed;

Enter the password for 'USERNAME' to connect to 'SERVERNAME':
The command completed successfully.
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.