Created
December 12, 2014 13:24
-
-
Save timgaunt/c4b04e52b2b1eb6f715c to your computer and use it in GitHub Desktop.
List all websites from PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:\my_list.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment