Click here to Skip to main content
15,888,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:

$AppPool="Test" 
    $Username="svc\jr.k"
    $Password="test123."
    $iisAppPoolDotNetVersion="v2.0"
    $managedPipelineMode=1 
    $enable32bit="true" 
    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
Posted
Updated 6-Nov-19 4:26am
v3
Comments
St0rmi 7-Nov-19 7:32am    
please check https://forums.iis.net/t/1181048.aspx, 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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900