IIS 7 and Above
Simple site export -> site import
Last post Feb 15, 2010 12:42 PM by krolson
Jan 21, 2010 10:05 AM|EdTijgen|LINK
I would like to (using powershell):
* export a site from IIS 7.5 on one machine.
* Store the result in a file somewhere.
* Import the site on another machine.
But i find that google did not index any pages yet that show me how to do that.
Please consider this AppCmd.exe equivalent:
appcmd list site "sitename" /config /xml > output.xml
appcmd add site "sitename" /in < output.xml
How do I do this with powershell?
Feb 15, 2010 12:42 PM|krolson|LINK
Have you considered using the Web Deployment Tool (available through the Web Platform Installer:
This tool would allow you to export a site as a package (a zip file) and then import that package on another machine or even export the site directly to the other machine (without the package step). There is general information on using the Web Deployment
Tool for site syncronization here:
The Web Deployment Tool (a.k.a. msdeploy) also works with Powershell, and there is some information here to get you started if you are interested in this approach: