How to enable Directory browsing by default on IIS Express
Go to
Web.config
file of your project.Add the below two tags in
<system.webServer>
tag inweb.config
<directoryBrowse enabled="true" />
<modules runAllManagedModulesForAllRequests="true" />
You should be able to use AppCmd.exe to manage IIS Express. Try this:
appcmd set config /section:directoryBrowse /enabled:true
More info on AppCmd.exe here: http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe