How to export Site list info from IIS 7 and above to a TXT file

In IIS 6 and below there used to be an easy way to export the list of sites.

To export the list of sites in IIS 7 and above, it is no longer done through the IIS Management console rather there is a command line utility available to accomplish the task. You can use the appcmd

1. Log on to the server running the IIS application with the administrator account or an equivalent account
2. Open the command prompt window
3. At the command prompt enter change directory (cd) to %windir%\system32\inetsrv\
4. Enter appcmd list site > c:\sites.txt – where c:\sites.txt can be any location and directory that you want to save the list to.
5. Close the command prompt window

Professional IIS 7 (Programmer to Programmer)
by Kenneth Schaefer, Jeff Cochran, Scott Forsyth, Rob Baugh, Mike Everest, Dennis Glendenning
Price: £21.25
You save: £2.57 (8 %)
31 new from £21.2516 used from £17.13
Professional IIS 7 This book is a complete reference to IIS7. 0---both for developers and administrators. In addition to covering the common administrative tasks, this book will take an in depth look at IIS7. 0 extensibility and operations management. This information will be pulled from people running major intranets and web hosting facilities. Full description

Post Comment