Why Powershell's New-WebBinding commandlet creates incorrect HostHeader?
I am trying to add an MSMQ binding for my IIS Web Site, correct binding should look like this: So I am executing following line in PowerShell: New-WebBinding -Name "My Site" -Protocol net.msmq -HostHeader "localhost" and it creates the following binding: prefixing it with *:80: , so my MSMQ messages don't get picked up by WCF service. Maybe I am doing it wrong? How to create a binding with Binding Information set to just "localhost" using this PowerShell comandlet? Commandlet codumentaiton can be found here . Looking at the decompiled code of the cmdlet, looks like it adding the IPAddress and