iis – Powershell list of websites using get-website?

iis – Powershell list of websites using get-website?

try

get-website | select name,id,state, physicalpath,
@{n=Bindings; e= { ($_.bindings | select -expa collection) -join ; }} |
Export-Csv -NoTypeInformation -Path C:my_list.csv

-edit after comment:

get-website | select name,id,state,physicalpath, 
@{n=Bindings; e= { ($_.bindings | select -expa collection) -join ; }} ,
@{n=LogFile;e={ $_.logfile | select -expa directory}}, 
@{n=attributes; e={($_.attributes | % { $_.name + = + $_.value }) -join ; }} |
Export-Csv -NoTypeInformation -Path C:my_list.csv

iis – Powershell list of websites using get-website?

Leave a Reply

Your email address will not be published.