Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
PowerShell script to change compilation mode
$webConfig = "C:\Inetpub\wwwroot\MyApp\web.config"
$doc = new-object System.Xml.XmlDocument
$doc.Load($webConfig)
$doc.get_DocumentElement()."system.web".compilation.debug = "false"
$doc.Save($webConfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment