Thanks C.B. for published script that shows list of all website of IIS:
Import-Module WebAdministration
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 D:\Temp\IIS_sites.csv
To get results from csv use Excel: Data –> From Text (Delimiter: comma)
Image may be NSFW.
Clik here to view.
Some links:
- Web Server (IIS) Administration Cmdlets in Windows PowerShell ( http://technet.microsoft.com/en-us/library/ee790599.aspx )
- List of websites using get ( http://stackoverflow.com/questions/13126811/powershell-list-of-websites-using-get-website )
Image may be NSFW.
Clik here to view.

Clik here to view.
