Closed LxLeChat closed 5 years ago
We can do as follow: declare a hahstable in the begin block with 3 values : thead, tbody and tfoot. in the process block, for the first iteration (coming from the pipeline or not) we get the object properties and fill the hashtable.thead for the next iterations, if the hashtable.thead is not null, we work with the hahstable.tbody
and in the end block, we do some stuff and voila !
same issue as #202
Subject of the issue
Piping ojects into Convertto-PSHTMLTable doesnt work as excpected.
Steps to reproduce
get-service | select name | Convertto-PSHTMLTable
Expected behaviour
The html tale code should contain all services returned by the get-service cmdlet.
Actual behaviour
Only the last entry from get-service is present in the html table