Created
May 14, 2015 06:50
-
-
Save lantrix/898f54507abdb60767e5 to your computer and use it in GitHub Desktop.
Powershell to show all IIS site details
This file contains hidden or 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
| import-module webadministration; get-website | select name,id,state,physicalpath,applicationPool, | |
| @{n="Bindings"; e= { ($_.bindings | select -expa collection) -join ';' }} , | |
| @{n="LogFile";e={ $_.logfile | select -expa directory}}, | |
| @{n="attributes"; e={($_.attributes | % { $_.name + "=" + $_.value }) -join ';' }} | Sort-Object id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment