Iis 如何解释使用powershell配置的绑定信息
Im自动部署具有此绑定的旧网站:Iis 如何解释使用powershell配置的绑定信息,iis,powershell,Iis,Powershell,Im自动部署具有此绑定的旧网站: net.tcp 808:* net.tcp *:808: 但当我使用WebAdministration将其设置为这样时: New-WebBinding -Name "site" -Procotol "net.tcp" -Port 808 我得到这个绑定: net.tcp 808:* net.tcp *:808: 它们是一样的吗?不管怎样,我可以使用: New-ItemProperty -Path "IIS:\sites\sitename" -Name
net.tcp 808:*
net.tcp *:808:
但当我使用WebAdministration将其设置为这样时:
New-WebBinding -Name "site" -Procotol "net.tcp" -Port 808
我得到这个绑定:
net.tcp 808:*
net.tcp *:808:
它们是一样的吗?不管怎样,我可以使用:
New-ItemProperty -Path "IIS:\sites\sitename" -Name Bindings -value @{protocol="net.tcp"; bindingInformation="808:*"}
实现同样的目标
Thx to:Nevermind,我可以使用:newitemproperty-Path“IIS:\sites\sitename”-Name Bindings-value@{protocol=“net.tcp”;bindingInformation=“808:*”}来实现同样的功能。Thx至: