如何解释使用powershell配置的BindingInformation [英] How to interpret BindingInformation configured with powershell
本文介绍了如何解释使用powershell配置的BindingInformation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我会自动部署具有此绑定的旧网站:
Im autodeploying an old website which have this binding:
net.tcp 808:*
但是当我使用WebAdministration进行如下设置时:
But when I use WebAdministration to set it like this:
New-WebBinding -Name "site" -Procotol "net.tcp" -Port 808
我得到此绑定:
net.tcp *:808:
它们相同吗?
推荐答案
没关系,我可以使用:
New-ItemProperty -Path "IIS:\sites\sitename" -Name Bindings -value @{protocol="net.tcp"; bindingInformation="808:*"}
实现相同.
向:>为什么Powershell的New-WebBinding Commandlet创建不正确的HostHeader?
这篇关于如何解释使用powershell配置的BindingInformation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文