【发布时间】:2012-12-23 16:19:45
【问题描述】:
我需要一个相当于在 IIS 中添加网站的 Powershell 命令,但需要“应用程序池”的绑定:
到目前为止,我可以添加一个这样做的网站:
New-Item iis:\Sites\swmarket -bindings @{protocol="http";bindingInformation="80:swmarket"} -physicalPath c:\inetpub\wwwroot
但我不知道如何在新网站中设置“应用程序池”。有什么方法可以查看所有绑定?
【问题讨论】:
-
如果你有 Powershell 3,试试这个:technet.microsoft.com/en-us/library/ee807831.aspx
标签: iis powershell application-pool