String Array and ConvertTo-HTML

Posted by Taylor Gibb on Stack Overflow See other posts from Stack Overflow or by Taylor Gibb
Published on 2012-08-27T21:08:21Z Indexed on 2012/08/27 21:38 UTC
Read the original article Hit count: 143

Filed under:
|

I cant for the life of me get the contents of a string array (well its not strictly typed but all the items in the array are strings) to become a table, i am trying to use ConvertTo-HTML.

For example:

$arr = @("One", "Two")
$arr | ConvertTo-HTML

I have tried -As List, using fragments, even using InputObject, is it even possible ?

Edit: i simply want to know if there is anyway to use an array as the input for the ConvertTo-HTML cmdlet, all it does is make a table with the length property of the strings.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about powershell