Skip to content

Instantly share code, notes, and snippets.

@jpolvora
Last active June 2, 2017 00:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpolvora/39340a00b380b92b44d0594aeec46f21 to your computer and use it in GitHub Desktop.
Save jpolvora/39340a00b380b92b44d0594aeec46f21 to your computer and use it in GitHub Desktop.
Removes all registered IIS Express sites in applicationhost.config.
@echo off
pushd "%PROGRAMFILES%\IIS Express"
for /F %%i in ('appcmd list sites /text:NAME') do (
echo %%i
appcmd delete site %%i
)
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment