Hi Hal
How would you pipe this to an hml file.
Here's my code:
#HTML format
$a = "<style>"
$a = $a + "BODY{background-color:peachpuff;}"
$a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
$a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
$a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:palegoldenrod}"
$a = $a + "</style>"
$FullName = @{ Label = "Product Full Name"; Expression = { (Get-View $_.ID).Config.Product.fullname } }
Get-VMHost | Sort-object name | ft name,$fullname | ConvertTo-Html -head $a -body "<H2>VMHosts</H2>" | Out-File d:\buildinfo.htm
All I get in the htm file is the header and jibberish.
Thanks
Tony