Created
December 10, 2015 18:17
-
-
Save Dalmirog-zz/bd5b518147c310ec2a22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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