This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM Delete all Websites | |
| %windir%\system32\inetsrv\appcmd list site /xml | %windir%\system32\inetsrv\appcmd delete site /in | |
| REM Delete all App Pools | |
| %windir%\system32\inetsrv\appcmd list apppool /xml | %windir%\system32\inetsrv\appcmd delete apppool /in | |
| REM Export all the Application Pools: | |
| %windir%\system32\inetsrv\appcmd list apppool /config /xml > C:\apppools.xml | |
| REM Import all the Application Pools: |