Export Sites and Application pools in IIS

Published on Author JFLeave a comment

Open CMD as Administrator:

Export AppPools

All

%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

Single

%windir%\system32\inetsrv\appcmd list apppool “MyAppPool” /config /xml > c:\myapppool.xml

Export Sites

%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

or in txt format (not very useful)

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

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.