locked
Write-host vs write-output RRS feed

  • Question

  • I am wondering why people are avoiding write-host. Almost everyone are telling to use write-output with variables and I am wondering why? 

    If I run write-host $computers it will give me output the same that I can get with write-output

    Wednesday, October 11, 2017 1:18 PM

Answers

  • Hi Jimmy,

    http://www.jsnover.com/blog/2013/12/07/write-host-considered-harmful/

    It is always the same. 


    -- Kamil Tatar

    Wednesday, October 11, 2017 1:22 PM
  • Hi,

    Issue with write-host is that it is not crossing the pipeline while write-output does. It is starting to matter in in example scripting

    Please remember to mark the replies as answers if they help.,

    NEDIMMEHIC.ORG

    Wednesday, October 11, 2017 1:26 PM

All replies

  • Hi Jimmy,

    http://www.jsnover.com/blog/2013/12/07/write-host-considered-harmful/

    It is always the same. 


    -- Kamil Tatar

    Wednesday, October 11, 2017 1:22 PM