I have this code that gets me site bindings which is great. But it gets me all bindings. Is there anyway to filter it so I just get the 443 bindings?
Import-Module Webadministration
Foreach ($Site in get-website) { Foreach ($Bind in $Site.bindings.collection) {[pscustomobject]@{Bindings=$Bind.bindinginformation.Split(":")[-1]}}}
This gives me a list like;
- site1.awesome.com
- site1.awesome.com
- site2.awesome.com
- site2.awesome.com
Which is near perfect. I just ant to only have the 443 bindings in the list.