Forcing all output to Out-Host

Welcome Forums General PowerShell Q&A Forcing all output to Out-Host

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years ago.

  • Author
  • #5737

    Points: 0
    Rank: Member

    by memeric at 2013-03-29 12:25:08

    Hi. I just started logging my PowerShell sessions using "Start-Transcript"; however, I noticed that when I run a non-native command (like dnscmd.exe) in the shell, the output is not displayed. Piping the command to "Out-Host" did resolve the issue...but I don't want to have to do this every time I type a command. Is there a way in PS to force all output to host so that all output gets logged correctly?
    Thanks in advance...

    by DonJ at 2013-03-29 14:37:26

    Not using the native console host application, no. You'd have to build your own host.

The topic ‘Forcing all output to Out-Host’ is closed to new replies.