Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:
- %windir%\system32\inetsrv\appcmd add apppool /in < C:\apppools.xml
- REM Export all Websites:
- %windir%\system32\inetsrv\appcmd list site /config /xml > C:\sites.xml
- REM Import all Websites:
- %windir%\system32\inetsrv\appcmd add site /in < C:\sites.xml
- REM Recycle Individual App Pool
- %windir%\system32\inetsrv\appcmd.exe recycle apppool /apppool.name:DefaultAppPool
- REM When importing web sites on another host, note the IP bindings will be incorrect and may need to be adjusted
Advertisement
Add Comment
Please, Sign In to add comment