Skip to content

Instantly share code, notes, and snippets.

@cemerson
Created March 21, 2014 11:07
Show Gist options
  • Save cemerson/9683936 to your computer and use it in GitHub Desktop.
Save cemerson/9683936 to your computer and use it in GitHub Desktop.
IIS: Export/Import Websites (IIS7)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment