I'm trying to update the http binding on a particular site which I can do with:
Set-ItemProperty "IIS:\Sites\SiteName" -Name bindings -Value @{protocol="http";bindingInformation=*:80:hostname.site.net}
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.
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?