Skip to content

Instantly share code, notes, and snippets.

View AvnerHadjadj's full-sized avatar

Avner Hadjadj AvnerHadjadj

View GitHub Profile
@alexsandro-xpt
alexsandro-xpt / iischeatsheet.bat
Created March 3, 2017 18:53 — forked from jcefoli/iischeatsheet.bat
IIS Websites and Apppools Delete/Import/Export Cheat Sheet
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: