I want to see how I can use the IIS PowerShell New-WebAppPool cmdlet to indicate the version of the .NET Framework being used. Currently, v2.0 is used by default, however, I am using MVC, and this will not work, because it is a v4.0 function. We really want each site to have its own application pool, and it seems to us that we should create these pools manually due to the inability to configure them through a script. Is there a way to automate this?
I am afraid that the answer will be βyou cannotβ, because the documentation does not offer any options for customization, and Google becomes squat; this gives me the impression that only configuring sites according to the script is acceptable, and something about setting up application pools is simply not done. I canβt imagine why not - if you automate one big part of the process, why can't you automate another main part?
Anyone who could figure out how to do this with PowerShell would help me a lot.
windows powershell iis application-pool .net-framework-version
Matt DiTrolio Nov 19 '10 at 20:25 2010-11-19 20:25
source share