How can i create a map drive with a username and password required when accessing the drive? i already have map drives and i already input a username and password in ( Connect as optional ) field. Help guy's pls.
closed as off topic by HopelessN00b, mdpc, Michael Hampton♦, Dave M, Stefan Lasiewski Mar 7 '13 at 0:13
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
From a command-prompt:
Once the drive is "mapped" the user won't be prompted for the password again. There is no built-in method I'm aware of to cause the user to be prompted each time the drive is accessed. Your best bet would be to use a script to prompt the user.
Better still, just use NTFS permissions (ACLs) to limit access to the share and allow users to authenticate with their logged-on credentials.
You can't map multiple drives with different users to the same machine.
(IPC$ connection is opened in the background to list shares, etc. You can workaround this but you are fighting the way it is supposed to work)
The most common cause of this is a misunderstanding of how to use AD. Don't use different users to represent permissions, use them to represent actual users. You can use security groups to represent a set of permissions.