Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

What is the best way to configure security with IIS to allow developers local IIS instances reach a UNC share for documents that are in our deployed website but not a part of the development source?

share|improve this question

Each developer can create a virtual directory in their local IIS instance. You can point a virtual directory to a UNC path (or you can map a drive and point to the mapped drive instead).

share|improve this answer

I'm assuming an AD domain...

On the server's directory that contains the documents, grant Share and Security permissions as necessary (read, modify, etc.).

Have each developer mount this share (UNC path \server\share) to a local drive. You can do this from My Computer --> Tools --> Map Network Drive or from the command line or a script:

net use * \\server\share /persistent:yes to map to any available drive letter, or

net use w: \\server\share /persistent:yes (this is preferred, but any letter can be used in place of "w:")

Point each dev's local IIS instance to that drive letter.

If you really want to get fancy, you can replace their IIS startup to call this batch and ensure the drive is mounted first...

share|improve this answer
How do you get IIS to call a batch file at startup? – Cocowalla Sep 3 '10 at 20:52
Set the service to not start automatically (at boot). Add the script to the system startup so that it first mounts the share, and then start IIS. (Bonus points for 1) documenting this in the IIS Service, and 2) checking the return code of those parts for successful starts. – gWaldo Sep 4 '10 at 23:26

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.