Server Fault is a question and answer site for system and network administrators. 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

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.

share|improve this question

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 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:

NET USE x: \\SERVER\Share /user:DOMAIN\username password

Where x: is the drive letter, \\SERVER\Share is the UNC to map the drive to, DOMAIN\Username is the username to use, and password is the password (do not include the password to force the user to enter the password).

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.

share|improve this answer

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.