ConvertTo-Html
SafeHTML reports
... | ConvertTo-Html | Out-File r.html
Turns results into HTML tables — quick, presentable reports for routine checks; inject CSS via -Head.
Examples
Get-Volume | ConvertTo-Html -Title 'Disk' | Out-File d.htmlDisk report as HTML
Syntax
<cmd> | ConvertTo-Html [-Title t] [-Property p] | Out-File <html>
Before you run it
Output only.
Related commands
- Export-CsvExport to CSV
- Send-MailMessageSend mail (legacy)
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store