Skip to content

Instantly share code, notes, and snippets.

@musicm122
Created November 28, 2011 19:35
Show Gist options
  • Save musicm122/1401673 to your computer and use it in GitHub Desktop.
Save musicm122/1401673 to your computer and use it in GitHub Desktop.
Turn Off 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 Off ..."
start "Turn IIS Debugging Off" /wait C:\Windows\System32\inetsrv\APPCMD SET Config /section:asp /appAllowDebugging:False
echo "Turned Off"
start "Restarting IIS" /wait IISRESET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment