title: Powershell update IIS Bindings
body: <p>I'm trying to update the http binding on a particular site which I can do with:</p>
  
  <pre><code>Set-ItemProperty "IIS:\Sites\SiteName" -Name bindings -Value @{protocol="http";bindingInformation=*:80:hostname.site.net}
  </code></pre>
  
  <p>The problem I'm having though is that this command completely replaces the binding information so if there is a https binding then it gets removed with Set-ItemProperty.</p>
  
  <p>Does anyone know a way of just updating a specific binding like HTTP without having to remove the others or recreate the whole binding string?</p>