Earlier this week I talked about creating HTML reports from within Powershell, using the ConvertTo-HTML cmdlet. One of the technique’s I used was a custom function I wrote called Set-AlternatingRows which took the table created by ConvertTo-HTML and alternated the row colors. This was a great exercise in using Functions and the Pipeline and I wanted to talk about that today.
Find yourself creating reports in Powershell and wished they looked a little more presentable than a CSV file? Send regular reports to your manager and want it to look professional? Here are some technique’s I’ve developed that produce some pretty sharp reports in HTML using standard Powershell cmdlets (plus one function to pretty up your tables).