I need a Powershell command that does the equivalent of adding a website in IIS, but need the bindings for the "Application pool":
So far I can add a website doing this:
New-Item iis:\Sites\swmarket -bindings @{protocol="http";bindingInformation="80:swmarket"} -physicalPath c:\inetpub\wwwroot
But I don't know how to set the "Application pool" in the new website. Any way to see all the bindings?