Putting the two together, i.e. showing all sections with their properties. get-webconfiguration //* | where {$_.psbase.SectionPath -like * -and $_.psbase.SectionPath.length -gt 0} | foreach {$_.SectionPath.ToUpper();get-webconfiguration $_.SectionPath | select -exp Attributes | select Name;`n} | more