Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 136

Changing properties for ManagedPipelineMode and ManagedRuntimeVersion

$
0
0

Hi All,

I have created a new application pool using the following PS code: 

New-Item IIS:\AppPools\AppTest
Set-ItemProperty IIS:\AppPools\AppTest -name processModel -value @{userName="Test\test1";password="123456";identitytype=3}
Set-ItemProperty IIS:\AppPools\AppTest -name ManagedRuntimeVersion -value "v2.0"
Set-ItemProperty IIS:\AppPools\AppTest -name ManagedPipelineMode -value "1"

The application pool is created but the Pip line is set to "Integrated" instead of "Classic" and the Runtime Version is v4.0 instead of the required v2.0. there was no any kind of error or event during the execution of the commands.

I have other, working,  application pools on this server that are already using the parameters I am trying to set.

I can change those parameters manually using the IIS UI and it's working, but I need a working script.

Thank you in advance,

Uri


Viewing all articles
Browse latest Browse all 136

Trending Articles