title: Why Powershell's New-WebBinding commandlet creates incorrect HostHeader?
body: <p>I am trying to add an MSMQ binding for my IIS Web Site, correct binding should look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/qvd0R.png" alt="enter image description here"> </p>
  
  <p>So I am executing following line in PowerShell:</p>
  
  <pre><code>New-WebBinding -Name "My Site"  -Protocol net.msmq -HostHeader "localhost"
  </code></pre>
  
  <p>and it creates the following binding:</p>
  
  <p><img src="https://i.stack.imgur.com/I7HkD.png" alt="enter image description here"></p>
  
  <p>prefixing it with <code>*:80:</code>, 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?</p>
  
  <p>Commandlet codumentaiton can be found <a href="http://technet.microsoft.com/en-us/library/ee790567.aspx" rel="nofollow noreferrer">here</a>.</p>