How to use Powershell to get a websites HostHeader -
i trying use powershell pull hostheaders websites installed. once have down, want hostheaders websites using port 80 , port 443.
so far able use
get-webbinding cmdlet
to pull information website, unsure how use query websites hostheader information. in output of get-webbinding command see host headers part of bindinginformation column, unsure how host header info.
however when query website via
get-webbinding -hostheader (hostheadername)
i information back, believe there way use get-webbinding query hostheader information.
if there way information, please let me know. have had no luck trying use
get-website
you have split bindinginformation
on :
, last part:
get-webbinding | select -expand bindinginformation | %{$_.split(':')[-1]}
Comments
Post a Comment