Windows – How to force Windows to prompt for credentials while accessing share

network-shareserver-message-blockwindowswindows-explorer

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.

Best Answer

if you type the command

net use \\SERVERNAME /u:DOMAIN\USER 

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