Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: ConvertTo-HTML cmdlet

$
0
0

The output of Format-* cmdlets cannot be consumed by anything but Out-File, Out-String, Out-Printer, and Out-Host. This is a common mistake, as described in “The Big Book of PowerShell Gotchas” (powershell.org/wp/ebooks). I suggest reviewing that (it’s a free book).

Consider using Select-Object instead. You will need to remove the FormatString and Align directives, as Select-Object does not support those.


Viewing all articles
Browse latest Browse all 13067

Trending Articles