如何解释使用powershell配置的BindingInformation

时间:2013-11-15 12:43:56

标签: iis powershell

我自动部署具有此绑定的旧网站:

net.tcp 808:*

但是,当我使用WebAdministration设置它时:

New-WebBinding -Name "site" -Procotol "net.tcp" -Port 808

我得到了这个绑定:

net.tcp *:808:

他们是一样的吗?

1 个答案:

答案 0 :(得分:5)

没关系,我可以使用:

New-ItemProperty -Path "IIS:\sites\sitename" -Name Bindings -value @{protocol="net.tcp"; bindingInformation="808:*"}

实现同样的目标。

请求:Why Powershell's New-WebBinding commandlet creates incorrect HostHeader?