Skip to content

Instantly share code, notes, and snippets.

@mayrund
Created May 8, 2020 07:52
Show Gist options
  • Save mayrund/7d331669898f5b66046a8955733dc8e7 to your computer and use it in GitHub Desktop.
Save mayrund/7d331669898f5b66046a8955733dc8e7 to your computer and use it in GitHub Desktop.
IIS Export & Import
# Export
%windir%\system32\inetsrv\appcmd list apppool /config /xml > app_pools.xml
%windir%\system32\inetsrv\appcmd list site /config /xml > sites.xml
# Import
%windir%\system32\inetsrv\appcmd add apppool /in < app_pools.xml
%windir%\system32\inetsrv\appcmd add site /in < sites.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment