System Administration & Network Administration
windows network-share server-message-block windows-explorer
Updated Fri, 29 Jul 2022 10:51:44 GMT

How to force Windows to prompt for credentials while accessing share

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.


if you type the command


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