Skip to content

Instantly share code, notes, and snippets.

@cemerson
Forked from cemerson/iis7_export_import.md
Last active August 29, 2015 13:57
Show Gist options
  • Save cemerson/9683976 to your computer and use it in GitHub Desktop.
Save cemerson/9683976 to your computer and use it in GitHub Desktop.

Export site from IIS7 and Import to another IIS7 server

Here's what you'd do to export a site:

    %windir%\system32\inetsrv\appcmd list site “MyWebsite” /config /xml > c:\mywebsite.xml 

And to import it:

    %windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml

(from my pal Patrick!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment