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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -