I've been reading about MS Deploy and writing a small script to export/import one website from one server to another server(IIS8 to IIS8). But I ran into sizing problems and some other errors and the whole process seems to be overkill for one website.

So I'm wondering if there's an easier way of doing it through the powershell? Using powershell, Is there a way to export and import a site? Googling to reveal much, but I'm thinking there's got to be a way.


  • 1
    MSdeploy is the way to do it. I'd probably look into the sizing errors you had rather than try to replicate MSdeploy in Powershell – Jim B May 19 '15 at 21:31

I did end up using msdeploy:


C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:apphostconfig="myWebSite" -enableLink:AppPoolExtension -dest:archivedir=c:\NavProd.zip,encryptPassword=myPassWord > wdPackage.log


C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:archivedir=c:\myWebSite.zip,encryptPassword=myPassWord -enableLink:AppPoolExtension - dest:apphostconfig="myWebSite" > wddeploy.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.