Click here to Skip to main content
14,364,399 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to enable 32 bit,.net framework,Pipeline mode while creating a Application Pool using powershell
Currently I am able create application pool with the username & password custom account. But Framework version, Enable 32 bit, Setting PipelineMode(Classic/Integrated) is not getting enabled.

What I have tried:

    New-Item IIS:\AppPools\$AppPool
    $NewPool = Get-Item IIS:\AppPools\$AppPool
    $NewPool | Set-ItemProperty -Name "managedRuntimeVersion" -Value $iisAppPoolDotNetVersion
    $NewPool | Set-ItemProperty -Name "enable32BitAppOnWin64" -Value $enable32bit 
    $NewPool.ProcessModel.Username = "$Username"
    $NewPool.ProcessModel.Password = "$Password"
    $NewPool.ProcessModel.IdentityType = 3
    $NewPool | Set-Item
Updated 6-Nov-19 5:26am
St0rmi 7-Nov-19 7:32am
please check, it's not at creation time but maybe it helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100