Quantcast
Viewing latest article 4
Browse Latest Browse All 7

Shot: How to save list of all websites of IIS (Powershell)

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.
image

Some links:

Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing latest article 4
Browse Latest Browse All 7

Trending Articles