How do I set the .NET Framework Version when using New-WebAppPool?

前端 未结 3 1779
长情又很酷
长情又很酷 2020-12-29 02:06

I\'m looking to see how I can use the IIS PowerShell Cmdlet New-WebAppPool to specify the version of the .NET Framework to use. Currently, it defaults to v

3条回答
  •  萌比男神i
    2020-12-29 02:35

    With the WebAdministration module loaded try this on a pool that you've created:

    Set-ItemProperty IIS:\AppPools\ managedRuntimeVersion v4.0
    

提交回复
热议问题