Skip to content

Instantly share code, notes, and snippets.

@musicm122
Created November 28, 2011 19:36
Show Gist options
  • Save musicm122/1401675 to your computer and use it in GitHub Desktop.
Save musicm122/1401675 to your computer and use it in GitHub Desktop.
Turn On IIS Debugging
@echo off
:: //http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/
:: APPCMD (command) (object-type) <identifier> < /parameter1:value1 ... >*
:: start /wait notepad.exe
echo "Turn IIS Debugging On ..."
start "Turn IIS Debugging On" /wait C:\Windows\System32\inetsrv\APPCMD SET Config /section:asp /appAllowDebugging:True
echo "Turned ON"
start "Restarting IIS" /wait IISRESET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment