How to create an application pool with appcmd?
Asked Answered
B

1

23

I have figured out I could associate an existing application pool with an existing site like this:

APPCMD.exe set app "sitename/" /applicationPool:"appPoolName"

But how do I create my own application pool with the name appPoolName, .NET version 4 and Integrated pipeline prior to this command?

Borodin answered 26/11, 2011 at 12:15 Comment(2)
the slash after "sitename/" is really important, I failed to add that at first and I was struggling, thanksAmersfoort
I'd add a comment if I had the required 50 rep points - just wanted to update the broken link in the accepted answer - new link: learn.microsoft.com/en-us/iis/get-started/…Dredger
K
36

This:

https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-appcmdexe

should give you everything you need. In particular

appcmd add apppool /name:appPoolName /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated"

should do the job.

Klug answered 26/11, 2011 at 12:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.