Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iis 如何解释使用powershell配置的绑定信息_Iis_Powershell - Fatal编程技术网

Iis 如何解释使用powershell配置的绑定信息

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

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 Bindings -value @{protocol="net.tcp"; bindingInformation="808:*"}
实现同样的目标


Thx to:

Nevermind,我可以使用:newitemproperty-Path“IIS:\sites\sitename”-Name Bindings-value@{protocol=“net.tcp”;bindingInformation=“808:*”}来实现同样的功能。Thx至: