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?

David Makogon
  • 69,407
  • 21
  • 141
  • 189
Houman
  • 64,245
  • 87
  • 278
  • 460
  • the slash after "sitename/" is really important, I failed to add that at first and I was struggling, thanks – knocte Dec 06 '16 at 10:38
  • 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: https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-appcmdexe – SeanNerd May 12 '17 at 06:31

1 Answers1

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.

Houman
  • 64,245
  • 87
  • 278
  • 460
Jeremy McGee
  • 24,842
  • 10
  • 63
  • 95