Don’t do that #13: Use Write-Host to properly align the output

By | April 10, 2015

Don’t do that: The following code needs to properly align the output of these 3 variables:


Do that: A better way to output objects:


previous-buttonnext-button

2 thoughts on “Don’t do that #13: Use Write-Host to properly align the output

  1. Pingback: Don’t do that #14 : Use Add method to multiple elements when creating an hashtable - Powershell Guru

  2. Daniel Verberne

    Very useful, thank you! I chose the PSCustomObject Format-List option.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *