开发者

How to generate a report of IIS settings for easy perusal?

开发者 https://www.devze.com 2022-12-22 22:39 出处:网络
I\'m looking for a way to (hopefully) create a text file which lists all the settings in IIS for.. Virtual Directories

I'm looking for a way to (hopefully) create a text file which lists all the settings in IIS for..

  • Virtual Directories
  • Web sites
  • Which framework is used on a certain website/directory
  • directory of hosted files
  • etc.

Basically I want to do some investigation on some of our servers to figure out where certain projects are located, without digging through right clicking and looking for the directory name manually, etc, for every domain we host.

The reasoning is that I often need to find access to files/projects I hav开发者_如何学编程en't worked on before, but historically, we don't have a strong naming scheme, so you can't just look where something "logically" would be - so, generating a list would be very helpful.

Something like this would be awesome, but I'm looking for any tips at all

  • Domainname1.com
    • framework: ASP.NET 1.1
    • directory: c:\inetpub\wwwroot\domainname1.com
    • Applications hosted at this domain:

etc, etc.

Plain text, XLS, XML.. anything other than right clicking through the whole list!

Thanks!


The IIS metabase is a configuration file that contains most of the settings of IIS, including what websites/application pools are running on the server. It's located by default at:

%windir%/system32/inetsrv/metabase.xml

You can potentially use that as a starting point and write a custom parser, or an XSLT transformation to get the report you want, but it's probably not going to be a trivial task.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号