Hello! I am pulling health data from a HP server using GWMI and it brings back the expected data if I just run ir, but when I go to use ConvertTo-HTML the info changes. Here is the code I am using;
gwmi HP_PowerSupply -Namespace root/HPQ | where-object {$_.DeviceID -eq 'Power Supply 2'} | Select StatusDescriptions
This yields
StatusDescriptions
{Power Supply is operating properly}
When I add a pipe and ConvertTo-HTML -Fragment the output changes to
* System.String[]
So the column header changes to just an * and the actual data is now System.String
Ideas? Thanks!!
Jeff