If you ever need to figure out which IPs and host names are bound to which site…this powershell works pretty good.
#
#
# Get binding names
Get-WebBinding | % {
$name = $_.ItemXPath -replace '(?:.*?)name=''([^'']*)(?:.*)', '$1'
New-Object psobject -Property @{
Name = $name
Binding = $_.bindinginformation.Split(":")[-1]
}
} | Group-Object -Property Name |
Format-Table Name, @{n="Bindings";e={$_.Group.Binding -join "`n"}} -Wrap
#
#
# Get binding IPs
$websites = Get-ChildItem IIS:\Sites
$websites
#
#