How to export /import IIS7 web sites and app pools and how to transfer IIS sites to a remote server?

How to export/import sites and app pools?

http://www.microsoftpro.nl/2011/01/27/exporting-and-importing-sites-and-app-pools-from-iis-7-and-7-5/

To export a IIS web site:

%systemroot%\system32\inetsrv\appcmd list site /config /xml >%path%\export-allwebsites-%computername%.xml

then modify the .xml to filter keep only the web site you want to restore then:

To import a IIS web site:

%systemroot%\system32\inetsrv\appcmd add site /in < %path%\export-allwebsites-%computername%.xml

How to transfer Web sites to  another IIS remote server ?

http://www.iis.net/downloads/microsoft/web-deploy

Published by jdalbera

IT Pro: 28 years experience for large companies - Technical manager and solution architect: Directory services and Identity Managemen expert, Azure AD, Office 365, Azure infrastructures, Microsoft AD Security (ADDS,ADFS,ADCS), PowerShell, Quest solutions architect. Operating systems (Win/Lin). Unix and Microsoft interoperability. Data center Operations. Company integrations. Network architectures. Virtualization and storage infrastructures. HP/Dell servers deployments. Multiple certifications: Azure, MCSE, MCPs, MCITS, ITIL, VCP, CCNA, CyberArk