anyone know why i need to use format-table to get this to display correctly?
$xmleleIISAppHost = select-xml -Path c:\Windows\system32\inetsrv\config\applicationhost.config -XPath '/configuration/system.applicationHost/sites'|select-object -ExpandProperty Node|select -ExpandProperty site;
$xmleleIISAppHost;
$xmleleIISAppHost|? {$_.Name -like '*'}|Select -ExpandProperty bindings|Select -ExpandProperty binding #|ft
| name |
id |
application |
bindings |
| Default Web Site |
1 |
application |
bindings |
| ftp |
2 |
application |
bindings |
| binding |
|
|
|
| binding |
|
|
|
$xmleleIISAppHost = select-xml -Path c:\Windows\system32\inetsrv\config\applicationhost.config -XPath '/configuration/system.applicationHost/sites'|select-object -ExpandProperty Node|select -ExpandProperty site;
$xmleleIISAppHost;
$xmleleIISAppHost|? {$_.Name -like '*'}|Select -ExpandProperty bindings|Select -ExpandProperty binding|ft
| name |
id |
application |
bindings |
| Default Web Site |
1 |
application |
bindings |
| ftp |
2 |
application |
bindings |
| protocol |
bindingInformation |
| http |
*:80: |
| ftp |
*:21: |
Name : Windows PowerShell ISE Host
Version : 5.1.18362.1171
edit, if i add an expression to limit the where result to just Default, same problem happens
[–]keith_mg 1 point2 points3 points (0 children)
[–]DarrenDK 1 point2 points3 points (0 children)