Posts

Showing posts with the label export IIS configruation from Commad prompt

Import configuration to the Internet Information Server

Hello, You can use following commands for configuration import, just open command prompt and type; %windir%\system32\inetsrv\appcmd add apppool /in C:\apppools.xml in order to import all Application pools under apppools.xml. %windir%\system32\inetsrv\appcmd add app site /in > c:\sites.xml in order to import all application  web sites under sites.xml. good luck,

export configuration of Internet Information Server

Hello, You can use following commands for export configuration, just open command prompt and type; %windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml in order to export all Application pools under IIS to the apppools.xml in C drive %windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml in order to export all Application sites under IIS to the sites.xml in C drive %windir%\system32\inetsrv\appcmd list config -section:system.webServer/rewrite/globalRules  /xml > c:\rewrite.xml in order to export all global rules of IIS to the rewrite.xml in C drive. good luck,