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

后端 未结 3 1479
无人共我
无人共我 2021-01-17 12:08

I am trying to add an MSMQ binding for my IIS Web Site, correct binding should look like this:

\"enter

3条回答
  •  轮回少年
    2021-01-17 12:45

    Give this a try:

    New-ItemProperty "IIS:\sites\NameOfYourSite" -name bindings -value @{protocol="net.msmq";bindingInformation="localhost"}
    

提交回复
热议问题