Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Last active November 28, 2016 13:51
Show Gist options
  • Save Dalmirog-zz/f813e1f95b2b3a3b47c791809f6232dc to your computer and use it in GitHub Desktop.
Save Dalmirog-zz/f813e1f95b2b3a3b47c791809f6232dc to your computer and use it in GitHub Desktop.
Set App Pool Managed Pipeline Mode
$AppPoolName = "" #Name of your app pool
$Mode = "" #For "Integrated" set this value to "0" and for "Classic" set it to "1"
Import-Module WebAdministration
Get-ChildItem IIS:\AppPools | ?{$_.Name -eq $AppPoolName} | Select-Object -ExpandProperty PSPath | %{ Set-ItemProperty $_ managedPipelineMode $mode -Verbose}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment