Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Created December 10, 2015 18:17
Show Gist options
  • Save Dalmirog-zz/bd5b518147c310ec2a22 to your computer and use it in GitHub Desktop.
Save Dalmirog-zz/bd5b518147c310ec2a22 to your computer and use it in GitHub Desktop.
#Importing IIS module to make the IIS:\ Drive available
Import-Module WebAdministration -ErrorAction SilentlyContinue
#Make sure to put the name of your deploy step name inside the Brackets.
$appPool = "IIS:\\AppPools\" + $OctopusParameters['Octopus.Action[YOURDEPLOYSTEPNAME].IISWebSite.ApplicationPoolName']
#Setting the .NET CLR Runtime of the app pool to "" which is the same as "No Managed Code"
Set-ItemProperty $appPool managedRuntimeVersion "" -verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment