Export IIS from IIS 7 and IIS 7.5

How to export site list and bindings info from IIS 7 and IIS 7.5 to a TXT file

In IIS 6 and below there used to be an easy way to export the list of sites to a text file which is no longer there in IIS 7 and above.  If you are like us then this becomes a bit of an issue as it is always great to be able to get a list of the sites to send to users or management etc etc.  If there are only a few sites it is not too big a deal to write them down but when there are 50 or 100 then is becomes a bit more of an issue.

There is a command line utility that allows you to export the list to a file.  On the server that is running IIS run the following command and a text file will be placed on the root of the C:\ drive with a list of all of your sites.

 

%windir%\system32\inetsrv\appcmd list site > c:\sites-list.txt

 

Be the first to comment

Leave a Reply