16 February 2009
IIS 7 Tip #1 Finding all the web.configs
Often during troubleshooting we need to figure out the locations of all the web.config files that could potentially affect a web application. With IIS 7.0 the configuration is now decentralized and settings could be spread out over a bunch of config files.
Appcmd provides an easy way to locate all the web.config files that affect IIS / ASP.NET settings.
This will list all the locations that IIS would read for a config file including all virtual directories under a website. The best part is that it also scans physical folders that are not marked as applications.

This article marks the start of a series where I will be posting tips that help administering IIS 7. If you have a tip that you want to share send it to me via the email link on the top.
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.