Ill be using this rt do some conditional html formatting
[xml]$html = $Reboot | ConvertTo-Html -fragment #check each row, skipping the TH header row for ($i=1;$i -le $html.table.tr.count-1;$i++) { $class = $html.CreateAttribute("class") #check the value of the last column and assign a class to the row if (($html.table.tr[$i].td[-1] -as [datetime]) -notlike '*11:00*') { $class.value = "danger" $html.table.tr[$i].Attributes.Append($class) | Out-Null } }